22 static constexpr double E = 2.71828182845904523536;
25 static constexpr double PI = 3.14159265358979323846;
28 static constexpr double Tau = 6.28318530717958647692;
Defines common cross-platform macros, export decorators, and fundamental types.
#define DOTNETDUPE_API
Platform-specific linkage decoration for exporting or importing library symbols.
Represents a strongly typed list of objects that can be accessed by index mirroring ....
Represents a strongly typed list of objects accessible by index.
Provides constants and static methods for trigonometric, logarithmic, and statistical functions.
static double Cos(double dValue)
Returns the cosine of the specified angle.
static double Floor(double dValue)
Returns the largest integral value less than or equal to the specified number.
static double Log2(double dValue)
Returns the base 2 logarithm of a specified number.
static double Round(double dValue)
Rounds a double-precision floating-point value to the nearest integral value.
static double Exp(double dValue)
Returns e raised to the specified power.
static double Sin(double dValue)
Returns the sine of the specified angle.
static double Mean(const Collections::Generic::List< double > &listValues)
Computes the arithmetic mean of a sequence of double values.
static Collections::Generic::List< double > ExponentialMovingAverageSeries(const Collections::Generic::List< double > &listValues, int iPeriod, double dSmoothing=2.0)
Computes the rolling exponential moving average (EMA) series across the sequence.
static int Clamp(int iValue, int iMin, int iMax)
Returns a value clamped to the inclusive range of min and max.
static constexpr double Tau
Represents the number of radians in one turn, specified by the constant tau (2*pi).
static double Asin(double dValue)
Returns the angle whose sine is the specified number.
static constexpr double E
Represents the natural logarithmic base, specified by the constant e.
static double Variance(const Collections::Generic::List< double > &listValues, bool bIsSample=false)
Computes the variance of a sequence of double values.
static int Sign(int iValue)
Returns an integer that indicates the sign of a 32-bit signed integer.
static double Acos(double dValue)
Returns the angle whose cosine is the specified number.
static int Min(int iVal1, int iVal2)
Returns the smaller of two 32-bit signed integers.
static constexpr double PI
Represents the ratio of the circumference of a circle to its diameter, specified by the constant pi.
static double StandardDeviation(const Collections::Generic::List< double > &listValues, bool bIsSample=false)
Computes the standard deviation of a sequence of double values.
static double StdDev(const Collections::Generic::List< double > &listValues, bool bIsSample=false)
Computes the standard deviation of a sequence of double values (abbreviated alias).
static double Tan(double dValue)
Returns the tangent of the specified angle.
static double Log(double dValue)
Returns the natural (base e) logarithm of a specified number.
static double MovingAverage(const Collections::Generic::List< double > &listValues, int iPeriod)
Computes the simple moving average (SMA) over the final window of length iPeriod.
static int Max(int iVal1, int iVal2)
Returns the larger of two 32-bit signed integers.
static double Truncate(double dValue)
Calculates the integral part of a specified double-precision floating-point number.
static double Cbrt(double dValue)
Returns the cube root of a specified number.
static Collections::Generic::List< double > MovingAverageSeries(const Collections::Generic::List< double > &listValues, int iPeriod)
Computes the rolling simple moving average (SMA) series across all values.
static double Ceiling(double dValue)
Returns the smallest integral value that is greater than or equal to the specified number.
static double Log10(double dValue)
Returns the base 10 logarithm of a specified number.
static double Sqrt(double dValue)
Returns the square root of a specified number.
static double Pow(double dBase, double dExponent)
Returns a specified number raised to the specified power.
static double ExponentialMovingAverage(const Collections::Generic::List< double > &listValues, int iPeriod, double dSmoothing=2.0)
Computes the exponential moving average (EMA) value for the sequence.
static double Cosh(double dValue)
Returns the hyperbolic cosine of the specified angle.
static double Sinh(double dValue)
Returns the hyperbolic sine of the specified angle.
static double Atan2(double dY, double dX)
Returns the angle whose tangent is the quotient of two specified numbers.
static double Atan(double dValue)
Returns the angle whose tangent is the specified number.
static int Abs(int iValue)
Returns the absolute value of a 32-bit signed integer.
static double Tanh(double dValue)
Returns the hyperbolic tangent of the specified angle.