diff --git a/src/Numerics/GoodnessOfFit.cs b/src/Numerics/GoodnessOfFit.cs
index eb135905..5972384f 100644
--- a/src/Numerics/GoodnessOfFit.cs
+++ b/src/Numerics/GoodnessOfFit.cs
@@ -68,7 +68,7 @@ namespace MathNet.Numerics
/// The Standard Error of the regression
public static double PopulationStandardError(IEnumerable modelledValues, IEnumerable observedValues)
{
- return SampleStandardError(modelledValues, observedValues, 0);
+ return StandardError(modelledValues, observedValues, 0);
}
///
@@ -80,7 +80,7 @@ namespace MathNet.Numerics
/// The degrees of freedom by which the
/// number of samples is reduced for performing the Standard Error calculation
/// The Standard Error of the regression
- public static double SampleStandardError(IEnumerable modelledValues, IEnumerable observedValues, int degreesOfFreedom)
+ public static double StandardError(IEnumerable modelledValues, IEnumerable observedValues, int degreesOfFreedom)
{
using (IEnumerator ieM = modelledValues.GetEnumerator())
using (IEnumerator ieO = observedValues.GetEnumerator())
@@ -108,4 +108,4 @@ namespace MathNet.Numerics
}
}
}
-}
\ No newline at end of file
+}
diff --git a/src/UnitTests/GoodnessOfFit/StandardErrorTest.cs b/src/UnitTests/GoodnessOfFit/StandardErrorTest.cs
index 60245133..b7434bfa 100644
--- a/src/UnitTests/GoodnessOfFit/StandardErrorTest.cs
+++ b/src/UnitTests/GoodnessOfFit/StandardErrorTest.cs
@@ -52,7 +52,7 @@ namespace MathNet.Numerics.UnitTests.GoodnessOfFit
}
[Test]
- public void ComputesSampleStandardErrorOfTheRegression()
+ public void ComputesStandardErrorOfTheRegression()
{
// Definition as described at: http://onlinestatbook.com/lms/regression/accuracy.html
var xes = new[] { 1.0, 2, 3, 4, 5 };
@@ -61,7 +61,7 @@ namespace MathNet.Numerics.UnitTests.GoodnessOfFit
var a = fit.Item1;
var b = fit.Item2;
var predictedYs = xes.Select(x => a + b * x);
- var standardError = Numerics.GoodnessOfFit.SampleStandardError(predictedYs, ys, degreesOfFreedom: 2);
+ var standardError = Numerics.GoodnessOfFit.StandardError(predictedYs, ys, degreesOfFreedom: 2);
Assert.AreEqual(0.964, standardError, 1e-3);
}
@@ -76,11 +76,11 @@ namespace MathNet.Numerics.UnitTests.GoodnessOfFit
}
[Test]
- public void SampleStandardErrorShouldThrowIfSampleSizeIsSmallerThanGivenDegreesOfFreedom()
+ public void StandardErrorShouldThrowIfSampleSizeIsSmallerThanGivenDegreesOfFreedom()
{
var modelled = new[] { 1.0 };
var observed = new[] { 1.0 };
- Assert.Throws(() => Numerics.GoodnessOfFit.SampleStandardError(modelled, observed, 2));
+ Assert.Throws(() => Numerics.GoodnessOfFit.StandardError(modelled, observed, 2));
}
}
}