Awkl
Loading...
Searching...
No Matches
stats Namespace Reference

Functions

auto sum (A)
 Sum function.
 
auto sumReciprocals (A)
 Sum of reciprocals function.
 
auto sumSquares (A)
 Sum of squares function (or dot product with itself)
 
auto sumOfSquares (A, m)
 Sum of squared deviations from the mean function (SS / SDM)
 
auto dot (A, B)
 Dot product.
 
auto prod (A)
 Product function.
 
auto cumsum (A)
 Cumulative sum function.
 
auto cumprod (A)
 Cumulative product function.
 
auto mean (A, l)
 Arithmetic mean function (AM / M_1)
 
auto harMean (A, l)
 Harmonic mean function (HM / M_-1)
 
auto geoMean (A, l)
 Geometric mean function (GM / M_0)
 
auto quadraticMean (A, l)
 Quadratic mean function (or root mean square) (QM/RMS / M_2)
 
auto generalizedMean (A, n)
 Generalized mean function (M_n)
 
auto mid (A, l)
 Middle element of an array. If there are 2, get the arithmetic mean of both.
 
auto midLow (A, l)
 Middle element of an array. If there are 2, get the lower indexed one.
 
auto midHigh (A, l)
 Middle element of an array. If there are 2, get the higher indexed one.
 
auto median (A)
 Median function.
 
auto medianLow (A)
 Median low function.
 
auto medianHigh (A)
 Median high function.
 
auto min (A)
 Minimum of an array.
 
auto max (A)
 Maximum of an array.
 
auto extrema (A, ex)
 Minimum and maximum of an array.
 
auto range (A)
 Range function (maximum - minimum)
 
auto midrange (A)
 Mid range function.
 
unassigned mode (array A, array modes)
 Mode function.
 
unassigned antimode (array A, array amodes)
 Antimode function.
 
auto pvar (A, m, l)
 Population variance function.
 
auto var (A, m, l)
 Sample variance function.
 
auto psd (A, m, l)
 Population standard deviation function.
 
auto sd (A, m, l)
 Sample standard deviation function.
 
auto cv (A, m, s)
 Coefficient of variation.
 
auto pcov (A, B, m1, m2)
 Population covariance function.
 
auto cov (A, B, m1, m2)
 Sample covariance function.
 
auto pcor (A, B)
 Population Pearson correlation function (PCC / rho)
 
auto cor (A, B)
 Sample Pearson correlation function.
 
auto pskewness (A, l)
 Population skewness function.
 
auto skewness (A, m, s, l)
 Sample skewness function.
 
auto pkurtosis (A, l)
 Population kurtosis function.
 
auto kurtosis (A, m, s, l)
 Sample kurtosis function.
 
auto _stat_push (s, x)
 
auto stat_push (s, x)
 Update moment statistics to array "s" /**.
 
auto stat_calc (s, stats)
 Update central moments statistics to array "s" mean: Arithmetic mean (1° moment) pvar: Population variance (2° central moment) var: Sample variance psd: Population standard deviation sd: Sample standard deviation pskewness: Population skewness (3° standardized moment) skewness: Sample skewness pkurtosis: Population kurtosis (4° standardized moment) kurtosis: Sample kurtosis More efficient than computing each one separately?
 

Function Documentation

◆ _stat_push()

auto stats::_stat_push ( s ,
x  )

◆ antimode()

unassigned stats::antimode ( array A,
array amodes )

Antimode function.

Parameters
[in]AData array
[out]amodesArray to be filled with the antimodes
Returns

◆ cor()

auto stats::cor ( A ,
B  )

Sample Pearson correlation function.

◆ cov()

auto stats::cov ( A ,
B ,
m1 ,
m2  )

Sample covariance function.

◆ cumprod()

auto stats::cumprod ( A )

Cumulative product function.

Todo
not in-place version

◆ cumsum()

auto stats::cumsum ( A )

Cumulative sum function.

Todo
not in-place version

◆ cv()

auto stats::cv ( A ,
m ,
s  )

Coefficient of variation.

◆ dot()

auto stats::dot ( A ,
B  )

Dot product.

◆ extrema()

auto stats::extrema ( A ,
ex  )

Minimum and maximum of an array.

◆ generalizedMean()

auto stats::generalizedMean ( A ,
n  )

Generalized mean function (M_n)

◆ geoMean()

auto stats::geoMean ( A ,
l  )

Geometric mean function (GM / M_0)

◆ harMean()

auto stats::harMean ( A ,
l  )

Harmonic mean function (HM / M_-1)

◆ kurtosis()

auto stats::kurtosis ( A ,
m ,
s ,
l  )

Sample kurtosis function.

◆ max()

auto stats::max ( A )

Maximum of an array.

◆ mean()

auto stats::mean ( A ,
l  )

Arithmetic mean function (AM / M_1)

◆ median()

auto stats::median ( A )

Median function.

◆ medianHigh()

auto stats::medianHigh ( A )

Median high function.

◆ medianLow()

auto stats::medianLow ( A )

Median low function.

◆ mid()

auto stats::mid ( A ,
l  )

Middle element of an array. If there are 2, get the arithmetic mean of both.

Note
assuming indexed starting at 1, no gaps
Todo
don't make assumptions, maybe asorti() first

◆ midHigh()

auto stats::midHigh ( A ,
l  )

Middle element of an array. If there are 2, get the higher indexed one.

Note
assuming indexed starting at 1, no gaps

◆ midLow()

auto stats::midLow ( A ,
l  )

Middle element of an array. If there are 2, get the lower indexed one.

Note
assuming indexed starting at 1, no gaps

◆ midrange()

auto stats::midrange ( A )

Mid range function.

◆ min()

auto stats::min ( A )

Minimum of an array.

◆ mode()

unassigned stats::mode ( array A,
array modes )

Mode function.

Parameters
[in]AData array
[out]modesArray to be filled with the modes
Returns

◆ pcor()

auto stats::pcor ( A ,
B  )

Population Pearson correlation function (PCC / rho)

◆ pcov()

auto stats::pcov ( A ,
B ,
m1 ,
m2  )

Population covariance function.

◆ pkurtosis()

auto stats::pkurtosis ( A ,
l  )

Population kurtosis function.

◆ prod()

auto stats::prod ( A )

Product function.

◆ psd()

auto stats::psd ( A ,
m ,
l  )

Population standard deviation function.

◆ pskewness()

auto stats::pskewness ( A ,
l  )

Population skewness function.

◆ pvar()

auto stats::pvar ( A ,
m ,
l  )

Population variance function.

◆ quadraticMean()

auto stats::quadraticMean ( A ,
l  )

Quadratic mean function (or root mean square) (QM/RMS / M_2)

◆ range()

auto stats::range ( A )

Range function (maximum - minimum)

◆ sd()

auto stats::sd ( A ,
m ,
l  )

Sample standard deviation function.

◆ skewness()

auto stats::skewness ( A ,
m ,
s ,
l  )

Sample skewness function.

◆ stat_calc()

auto stats::stat_calc ( s ,
stats  )

Update central moments statistics to array "s" mean: Arithmetic mean (1° moment) pvar: Population variance (2° central moment) var: Sample variance psd: Population standard deviation sd: Sample standard deviation pskewness: Population skewness (3° standardized moment) skewness: Sample skewness pkurtosis: Population kurtosis (4° standardized moment) kurtosis: Sample kurtosis More efficient than computing each one separately?

◆ stat_push()

auto stats::stat_push ( s ,
x  )

Update moment statistics to array "s" /**.

Compute running statistics for the first 4 degrees of moments of a series n: Length min: Minimum max: Maximum sum: Sum mom1: 1° moment mom2: 2° moment mom3: 3° moment mom4: 4° moment

◆ sum()

auto stats::sum ( A )

Sum function.

◆ sumOfSquares()

auto stats::sumOfSquares ( A ,
m  )

Sum of squared deviations from the mean function (SS / SDM)

◆ sumReciprocals()

auto stats::sumReciprocals ( A )

Sum of reciprocals function.

◆ sumSquares()

auto stats::sumSquares ( A )

Sum of squares function (or dot product with itself)

◆ var()

auto stats::var ( A ,
m ,
l  )

Sample variance function.