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

Exponential.cs-Where are you getting these formulas? #101

Closed tikigonzo closed 2 weeks ago

tikigonzo commented 1 month ago

While looking at the testing for the Exponential Distribution, I found a lot of testing already completed by you with Flood Frequency Analysis referenced. When I was testing the other functions such as mean and median, I couldn't find any supporting documentation for the formulas you used. The wiki only outlines the scaling parameter as the main input but your constructor has a location parameter as an additional input. Is this distribution and characteristics found in the Flood Frequency analysis book?

HadenSmith commented 1 month ago

Yes, this is the 2-parameter Exponential distribution. When the location is 0, it is the same as the 1-parameter distribution you will find on Wikipedia. You can create a test along those lines.