Function vector_skew (o2scl)¶
-
template<class vec_t>
double o2scl::vector_skew(size_t n, const vec_t &data, double mean, double stddev)¶ Skewness with specified mean and standard deviation.
This function computes
\[ \frac{1}{N} \sum_i \left[ \frac{ \left(x_i - \mu \right)}{ \sigma }\right]^3 \]where the values of \( \mu \) and \( \sigma \) are given inmean
andstddev
.This function produces the same results as
gsl_stats_skew_m_sd()
.If
n
is zero, this function will return zero without calling the error handler.
-
template<class vec_t>
double o2scl::vector_skew(const vec_t &data, double mean, double stddev)¶ Skewness with specified mean and standard deviation.
This function computes
\[ \frac{1}{N} \sum_i \left[ \frac{ \left(x_i - \mu \right)}{ \sigma }\right]^3 \]where the values of \( \mu \) and \( \sigma \) are given inmean
andstddev
.This function produces the same results as
gsl_stats_skew_m_sd()
.If
n
is zero, this function will return zero without calling the error handler.
-
template<class vec_t>
double o2scl::vector_skew(size_t n, const vec_t &data)¶ Skewness with computed mean and standard deviation.
This function computes
\[ \frac{1}{N} \sum_i \left[ \frac{ \left(x_i - \mu \right)}{ \sigma }\right]^3 \]where the values of \( \mu \) and \( \sigma \) are computed using vector_mean() and vector_stddev().This function produces the same results as
gsl_stats_skew()
.If
n
is zero, this function will return zero without calling the error handler.
-
template<class vec_t>
double o2scl::vector_skew(const vec_t &data)¶ Skewness with computed mean and standard deviation.
This function computes
\[ \frac{1}{N} \sum_i \left[ \frac{ \left(x_i - \mu \right)}{ \sigma }\right]^3 \]where the values of \( \mu \) and \( \sigma \) are computed using vector_mean() and vector_stddev().This function produces the same results as
gsl_stats_skew()
.If
n
is zero, this function will return zero without calling the error handler.