statistical. Var

Compute the sample variance of a set of numbers.

Constructor

new Var()

Methods

(static) p(args) → {number}

Calculates variance based on the entire population.

Parameters:
NameTypeDescription
argsArray.<number>

number1, number2, ... Number arguments 2 to 254 corresponding to a population.

Returns:

Calculates variance based on the entire population or an error if the arguments are incorrect.

Type: 
number

(static) s(args) → {number}

Estimates variance based on a sample.

Parameters:
NameTypeDescription
argsArray.<number>

number1, number2, ... Number arguments 2 to 254 corresponding to a sample of a population.

Returns:

Estimates variance based on a sample.

Type: 
number