USArmy-Corps-of-Engineers-RMC / Numerics

Numerics is a free and open-source library for .NET developed by USACE-RMC, providing a comprehensive set of methods and algorithms for numerical computations and statistical analysis.
Other
20 stars 2 forks source link

TimeSeries Standard Deviation vs Statistics Standard Deviaiton #78

Closed sadie-niblett closed 3 months ago

sadie-niblett commented 3 months ago

In TimeSeries.cs a new StandardDeviation() method is defined that gives a different answer that the StandardDeviation() method in Statistics. I figured this was ok since this was time series data. But in the SummaryStatistics() method in TimeSeries.cs we call Statistics.ProductMoments() to get the mean, standard deviation, skewness, and kurtosis for the TimeSeries object. But this method is calling the Statistics implementation of StandardDeviation, not the TimeSeries implementation, so we get a different value. I'm not sure if the implementation of StandardDeviation() within TimeSeries is incorrect or if this call to ProductMoments() in SummaryStatistics is incorrect.

HadenSmith commented 3 months ago

Fixed.