Skip to content

Commit

Permalink
Fix for Unity 2019
Browse files Browse the repository at this point in the history
  • Loading branch information
nowsprinting committed Jan 13, 2025
1 parent f57d02b commit 475517b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ public class MyTestClass

### Statistics APIs \[experimental\]

`TestHelper.Statistics` namespace provides utilities for statistical testing, including assertions for pseudo-random number generator (PRNG) and statistical summary tools.
`TestHelper.Statistics` namespace provides utilities for statistical testing, including assertions for pseudo-random number generators (PRNG) and statistical summary tools.

> [!WARNING]
> This feature is experimental.
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Statistics/Histograms/Histogram.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ internal void Calculate()
}

frequencies.Sort();
Peak = frequencies[^1];
Peak = frequencies[frequencies.Count - 1];
Valley = frequencies[0];
Median = frequencies.Count % 2 == 0
? (double)(frequencies[frequencies.Count / 2 - 1] + frequencies[frequencies.Count / 2]) / 2
Expand Down

0 comments on commit 475517b

Please sign in to comment.