Contains various useful extension methods for numeric equality, and simple statistical calculations.
public static class MathExtensions
name | description |
---|---|
static AlmostEqual(…) | Extension method used to determine if two values are very close to equal, based on the Epsilon, the .NET defined potential error between equal floating point numbers. (5 methods) |
static Between<T>(…) | Extension method used to determine if an item is between the other two, inclusive. |
static Median(…) | Calculates the Median of all the passed in values. (4 methods) |
static Mode<T>(…) | Extension method used to calculate the mode of a list of numbers. |
static StdDeviation(…) | Calculates the Standard Deviation (Sigma) of all the passed in values. (4 methods) |
- namespace TheCodingMonkey.Math