Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
cdrnet committed Mar 6, 2022
1 parent 38bbbe8 commit 12bf858
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
using MathNet.Numerics.Distributions;
using MathNet.Numerics.Random;
using MathNet.Numerics.Statistics;
using MathNet.Numerics.Tests;
using MathNet.Numerics.Tests.StatisticsTests;
using NUnit.Framework;

namespace MathNet.Numerics.UnitTests.StatisticsTests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
#endif
using NUnit.Framework;
using MathNet.Numerics.Statistics;
using MathNet.Numerics.Tests;
using MathNet.Numerics.Tests.StatisticsTests;

namespace MathNet.Numerics.UnitTests.StatisticsTests
{
Expand Down Expand Up @@ -416,7 +418,7 @@ public void JsonDeserializationTest(string dataSet, int digits, double skewness,
NumberHandling = JsonNumberHandling.AllowNamedFloatingPointLiterals,
};
var json = JsonSerializer.Serialize(serialize, jsonSerializerOptions);
var stats = JsonSerializer.Deserialize<DescriptiveStatistics>(json, jsonSerializerOptions);
var stats = JsonSerializer.Deserialize<WeightedDescriptiveStatistics>(json, jsonSerializerOptions);
Assert.NotNull(stats);
AssertHelpers.AlmostEqualRelative(data.Mean, stats.Mean, 10);
AssertHelpers.AlmostEqualRelative(data.StandardDeviation, stats.StandardDeviation, digits);
Expand Down
2 changes: 1 addition & 1 deletion src/Numerics/Statistics/WeightedDescriptiveStatistics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public WeightedDescriptiveStatistics(IEnumerable<(double, double)> data, bool in
/// <remarks>
/// Used for Json serialization
/// </remarks>
public DescriptiveStatistics()
public WeightedDescriptiveStatistics()
{
}
#endif
Expand Down

0 comments on commit 12bf858

Please sign in to comment.