# [−][src]Function arrayfire::var

`pub fn var<T>(arr: &Array<T>, isbiased: bool, dim: i64) -> Array<T::MeanOutType> where`

T: HasAfEnum,

T::MeanOutType: HasAfEnum,

Compute Variance along a specific dimension

# Parameters

`arr`

is the input Array`isbiased`

is boolean denoting population variance(False) or Sample variance(True)`dim`

is the dimension along which the variance is extracted

# Return Values

Array with variance of input Array `arr`

along dimension `dim`

.