DotNetDupe 5.0.4
C++17/20 Implementation of the .NET Base Class Library (BCL)
Loading...
Searching...
No Matches
Statistics.cpp
Go to the documentation of this file.
1#include "pch.h"
3#include "System/Math.h"
4
5namespace DotNetDupe {
6 namespace System {
7 namespace Numerics {
8
11 return Math::Mean(listValues);
12 }
13
14 double Statistics::Variance(const Collections::Generic::List<double>& listValues, bool bIsSample) {
16 return Math::Variance(listValues, bIsSample);
17 }
18
19 double Statistics::StandardDeviation(const Collections::Generic::List<double>& listValues, bool bIsSample) {
21 return Math::StandardDeviation(listValues, bIsSample);
22 }
23
24 double Statistics::StdDev(const Collections::Generic::List<double>& listValues, bool bIsSample) {
26 return Math::StdDev(listValues, bIsSample);
27 }
28
29 double Statistics::MovingAverage(const Collections::Generic::List<double>& listValues, int iPeriod) {
31 return Math::MovingAverage(listValues, iPeriod);
32 }
33
39
41 const Collections::Generic::List<double>& listValues, int iPeriod, double dSmoothing) {
43 return Math::ExponentialMovingAverage(listValues, iPeriod, dSmoothing);
44 }
45
47 const Collections::Generic::List<double>& listValues, int iPeriod, double dSmoothing) {
49 return Math::ExponentialMovingAverageSeries(listValues, iPeriod, dSmoothing);
50 }
51
52 }
53 }
54}
Provides constants and static methods for trigonometric, logarithmic, and other common mathematical f...
Provides high-order statistical methods and moving window functions for numeric collections.
Represents a strongly typed list of objects accessible by index.
Definition List.h:31
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 double Variance(const Collections::Generic::List< double > &listValues, bool bIsSample=false)
Computes the variance of a sequence of double values.
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 MovingAverage(const Collections::Generic::List< double > &listValues, int iPeriod)
Computes the simple moving average (SMA) over the final window of length iPeriod.
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 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 StandardDeviation(const Collections::Generic::List< double > &listValues, bool bIsSample=false)
Computes the standard deviation of a sequence of double values.
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 MovingAverage(const Collections::Generic::List< double > &listValues, int iPeriod)
Computes the simple moving average (SMA) over the final window of length iPeriod.
static double Variance(const Collections::Generic::List< double > &listValues, bool bIsSample=false)
Computes the variance 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 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 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 Mean(const Collections::Generic::List< double > &listValues)
Computes the arithmetic mean of a sequence of double values.
Definition Statistics.cpp:9