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
21 stars 2 forks source link

Bernoulli.cs-Kurtosis() #80

Closed tikigonzo closed 2 months ago

tikigonzo commented 3 months ago

Kurtosis is undefined when probability is 0. Adding an exception case to Kurtosis and Skew for this case.

HadenSmith commented 2 months ago

These functions should return infinity when dividing by 0. This is the desired behavior. There is no need for an exception.

tikigonzo commented 2 months ago

Got it. Undid changes and testing.