Find the variance of values in the input. More...
Functions | |
AFAPI array | var (const array &in, const bool isbiased=false, const dim_t dim=-1) |
C++ Interface for variance. | |
AFAPI array | var (const array &in, const af_var_bias bias, const dim_t dim=-1) |
C++ Interface for variance. | |
AFAPI array | var (const array &in, const array &weights, const dim_t dim=-1) |
C++ Interface for variance of weighted inputs. | |
template<typename T > | |
AFAPI T | var (const array &in, const bool isbiased=false) |
C++ Interface for variance of all elements. | |
template<typename T > | |
AFAPI T | var (const array &in, const af_var_bias bias) |
C++ Interface for variance of all elements. | |
template<typename T > | |
AFAPI T | var (const array &in, const array &weights) |
C++ Interface for variance of all elements in weighted input. | |
AFAPI af_err | af_var (af_array *out, const af_array in, const bool isbiased, const dim_t dim) |
C Interface for variance. | |
AFAPI af_err | af_var_v2 (af_array *out, const af_array in, const af_var_bias bias, const dim_t dim) |
C Interface for variance. | |
AFAPI af_err | af_var_weighted (af_array *out, const af_array in, const af_array weights, const dim_t dim) |
C Interface for variance of weighted input array. | |
AFAPI af_err | af_var_all (double *realVal, double *imagVal, const af_array in, const bool isbiased) |
C Interface for variance of all elements. | |
AFAPI af_err | af_var_all_v2 (double *realVal, double *imagVal, const af_array in, const af_var_bias bias) |
C Interface for variance of all elements. | |
AFAPI af_err | af_var_all_weighted (double *realVal, double *imagVal, const af_array in, const af_array weights) |
C Interface for variance of all elements in weighted input. | |
Find the variance of values in the input.
This function performs the operation across all dimensions of the input array.
C Interface for variance.
[out] | out | will contain the variance of the input array along dimension dim |
[in] | in | is the input array |
[in] | isbiased | is boolean denoting Population variance (false) or Sample Variance (true) |
[in] | dim | the dimension along which the variance is extracted |
AFAPI af_err af_var_all | ( | double * | realVal, |
double * | imagVal, | ||
const af_array | in, | ||
const bool | isbiased | ||
) |
C Interface for variance of all elements.
[out] | realVal | will contain the real part of variance of the entire input array |
[out] | imagVal | will contain the imaginary part of variance of the entire input array |
[in] | in | is the input array |
[in] | isbiased | is boolean denoting Population variance (false) or Sample Variance (true) |
AFAPI af_err af_var_all_v2 | ( | double * | realVal, |
double * | imagVal, | ||
const af_array | in, | ||
const af_var_bias | bias | ||
) |
C Interface for variance of all elements.
[out] | realVal | will contain the real part of variance of the entire input array |
[out] | imagVal | will contain the imaginary part of variance of the entire input array |
[in] | in | is the input array |
[in] | bias | The type of bias used for variance calculation. Takes of value of type af_var_bias |
AFAPI af_err af_var_all_weighted | ( | double * | realVal, |
double * | imagVal, | ||
const af_array | in, | ||
const af_array | weights | ||
) |
C Interface for variance of all elements in weighted input.
[out] | realVal | will contain the real part of variance of the entire weighted input array |
[out] | imagVal | will contain the imaginary part of variance of the entire weighted input array |
[in] | in | is the input array |
[in] | weights | is used to scale input in before getting variance |
AFAPI af_err af_var_v2 | ( | af_array * | out, |
const af_array | in, | ||
const af_var_bias | bias, | ||
const dim_t | dim | ||
) |
C Interface for variance.
[out] | out | will contain the variance of the input array along dimension dim |
[in] | in | is the input array |
[in] | bias | The type of bias used for variance calculation. Takes of value of type af_var_bias |
[in] | dim | the dimension along which the variance is extracted |
AFAPI af_err af_var_weighted | ( | af_array * | out, |
const af_array | in, | ||
const af_array | weights, | ||
const dim_t | dim | ||
) |
C Interface for variance of weighted input array.
[out] | out | will contain the variance of the input array along dimension dim |
[in] | in | is the input array |
[in] | weights | is used to scale input in before getting variance |
[in] | dim | the dimension along which the variance is extracted |
AFAPI T var | ( | const array & | in, |
const af_var_bias | bias | ||
) |
C++ Interface for variance of all elements.
[in] | in | is the input array |
[in] | bias | The type of bias used for variance calculation. Takes of value of type af_var_bias. |
in
array AFAPI array var | ( | const array & | in, |
const af_var_bias | bias, | ||
const dim_t | dim = -1 |
||
) |
C++ Interface for variance.
[in] | in | is the input array |
[in] | bias | The type of bias used for variance calculation. Takes o value of type af_var_bias. |
[in] | dim | the dimension along which the variance is extracted |
dim
dim
is -1 by default. -1 denotes the first non-singleton dimension. C++ Interface for variance of all elements in weighted input.
[in] | in | is the input array |
[in] | weights | is used to scale input in before getting variance |
C++ Interface for variance of weighted inputs.
[in] | in | is the input array |
[in] | weights | is used to scale input in before getting variance |
[in] | dim | the dimension along which the variance is extracted |
dim
dim
is -1 by default. -1 denotes the first non-singleton dimension. C++ Interface for variance of all elements.
[in] | in | is the input array |
[in] | isbiased | is boolean denoting Population variance (false) or Sample Variance (true) |
C++ Interface for variance.
[in] | in | is the input array |
[in] | isbiased | is boolean denoting Population variance (false) or Sample Variance (true) |
[in] | dim | the dimension along which the variance is extracted |
dim
dim
is -1 by default. -1 denotes the first non-singleton dimension.