stats
Statistical functions. More...
Functions
Name | |
---|---|
template <typename D > D |
get_avg(std::vector< D > a) Get the avgerage of vector. |
template <typename D > D |
get_var(std::vector< D > a) Get the variance object. |
template <typename D > D |
get_std(std::vector< D > a) Get the standard diviation of vector. |
template <typename D > var::QR< D > |
get_qr(std::vector< D > a) Get the quartile range of a vector. |
template <typename D > D |
get_r(std::vector< D > x, std::vector< D > y) Get the corelation coefficient of two vectors. |
Detailed Description
Statistical functions.
Short for STATiStics
Functions Documentation
function get_avg
template <typename D >
D get_avg(
std::vector< D > a
)
Get the avgerage of vector.
Parameters:
- a input vector
Template Parameters:
- D Type
Return: D: output average
function get_var
template <typename D >
D get_var(
std::vector< D > a
)
Get the variance object.
Parameters:
- a input vector
Template Parameters:
- D Type
Return: D: output variance
function get_std
template <typename D >
D get_std(
std::vector< D > a
)
Get the standard diviation of vector.
Parameters:
- a input vector
Template Parameters:
- D Type
Return: D: output standard diviation
function get_qr
template <typename D >
var::QR< D > get_qr(
std::vector< D > a
)
Get the quartile range of a vector.
Parameters:
- a input vector
Return: QR
: the quartile range
function get_r
template <typename D >
D get_r(
std::vector< D > x,
std::vector< D > y
)
Get the corelation coefficient of two vectors.
Parameters:
- x x vector
- y y vector
Return: D: corelation coefficient
Updated on 4 September 2022 at 18:30:41 EEST