Table Of Contents

Measures of Spread (Standard Deviation and Variance) (G Dataflow)

Version:
    Last Modified: January 9, 2017

    Computes the mean, standard deviation, and variance of the values in a sequence.

    connector_pane_image
    datatype_icon

    x

    The input sequence.

    datatype_icon

    weighting

    Whether to calculate the population or the sample standard deviation and variance.

    Name Description
    Sample

    Calculates the sample standard deviation and variance.

    Population

    Calculates the population standard deviation and variance.

    Default: Sample

    datatype_icon

    error in

    Error conditions that occur before this node runs. The node responds to this input according to standard error behavior.

    Default: No error

    datatype_icon

    mean

    Mean, or average, of the values in the input sequence.

    datatype_icon

    standard deviation

    Standard deviation calculated from the values in the input sequence.

    datatype_icon

    variance

    Calculated variance of the values in the input sequence.

    datatype_icon

    error out

    Error information. The node produces this output according to standard error behavior.

    Algorithm for Computing the Mean, Deviation, and Variance

    The node calculates the output values using the following equations.

    μ = i = 0 n 1 x i n

    where μ is mean and n is the number of elements in x.

    standard deviation = σ
    σ 2 = i = 0 n 1 ( x i μ ) 2 w

    where

    • σ 2 is variance
    • μ is mean
    • w is n when weighting is Population and (n - 1) when weighting is Sample

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: Not supported


    Recently Viewed Topics