Skip to content

Commit

Permalink
Merge commit '099a5f074e169c5bd1b1685aca7a940c15455101'
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollo3zehn committed Sep 18, 2023
2 parents c226821 + 099a5f0 commit 8770399
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## v2.0.0-beta.17 - 2023-09-18

### Bugs fixed:
- Fixed a bug in the mean-polar-degree algorithm which caused the result of be offset by a random value.

## v2.0.0-beta.16 - 2023-09-18

### Bugs fixed:
Expand Down
4 changes: 4 additions & 0 deletions src/Nexus/Services/ProcessingService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ private void ApplyAggregationFunction(
{
var sinBuffer = memoryOwner_sin.Memory.Slice(0, targetBuffer.Length);
var cosBuffer = memoryOwner_cos.Memory.Slice(0, targetBuffer.Length);

var limit = 360;
var factor = 2 * Math.PI / limit;

Expand All @@ -180,6 +181,9 @@ private void ApplyAggregationFunction(

if (isHighQuality)
{
sin[x] = 0.0;
cos[x] = 0.0;

for (int i = 0; i < chunkData.Length; i++)
{
sin[x] += Math.Sin(chunkData[i] * factor);
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": "2.0.0",
"suffix": "beta.16"
"suffix": "beta.17"
}

0 comments on commit 8770399

Please sign in to comment.