Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

std

Class: prob.ParametricTruncatableDistribution
Package: prob

Standard deviation of probability distribution object

Syntax

s = std(pd)

Description

s = std(pd) returns the standard deviation s of the probability distribution pd.

Input Arguments

expand all

Probability distribution, specified as a probability distribution object. Create a probability distribution object with specified parameter values using makedist.

Output Arguments

expand all

Standard deviation of the probability distribution, returned as a nonnegative scalar value.

Examples

expand all

Create a triangular distribution object.

pd = makedist('Triangular','a',-3,'b',1,'c',3)
pd = 

  TriangularDistribution

A = -3, B = 1, C = 3

Compute the standard deviation of the distribution.

s = std(pd)
s =

    1.2472

See Also

Was this topic helpful?