Std Deviation and Variance VI

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


icon

Inputs/Outputs

  • c1ddbl.png X

    X is the input sequence.

  • cenum.png Weighting (Sample)

    Weighting determines whether to calculate the population or the sample standard deviation and variance.

    0
    Sample
    (default)
    1
    Population
  • idbl.png mean

    mean is the mean, or average, of the values in the input sequence X.

  • idbl.png standard deviation

    standard deviation is the standard deviation calculated from the values in the input sequence X.

  • idbl.png variance

    variance is the calculated variance of the values in the input sequence X.

  • The VI calculates the output values using the following equations.

    where µ is mean and n is the number of elements in X.

    standard deviation = σ

    where σ² is variance, µ is mean, and w is n when Weighting is set to Population and (n – 1) when Weighting is set to Sample.

    Examples

    Refer to the following example files included with LabVIEW.

    • labview\examples\Mathematics\Probability and Statistics\Statistics Solver.vi
    • labview\examples\Signal Processing\Spectral Analysis\Power & Frequency Estimator.vi
    • labview\examples\Mathematics\Probability and Statistics\Noise Statistics.vi