Computes the variance of the input elements.
y = var(x)
y = var(x, w)
y = var(x, w, d)
Scalar or array of any dimension.
Weight. w is a scalar or a vector. If w is a scalar, w is an indicator, which can only be 0 or 1. If w is a vector, w is the weight.
Specifies the dimension of x across which to compute the variance. d can be in a range of 1 to the maximum supported array dimension (32). If you do not specify d, the function works with the first dimension whose size is not equal to 1.
Variance of x. y is a scalar or an array.
w can be in one of the following states:
X = [1, 2, 3, 4, 5, 6; 2, 4, 6, 8, 10, 12] Y = var(X)
Where This Node Can Run:
Desktop OS: Windows
FPGA: DAQExpress does not support FPGA devices