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

pub fn var_all_weighted<T, W>(

input: &Array<T>,

weights: &Array<W>

) -> (f64, f64) where

T: HasAfEnum,

W: HasAfEnum + RealFloating,

Compute weighted variance of all data

# Parameters

`input`

is the input Array`weights`

Array has the weights

# Return Values

A tuple of 64-bit floating point values with the stat values.