mthree.utils.stddev

stddev(items)[source]

Compute expectation values from distributions.

Added in version 0.16.0:

Parameters:
items (list or dict or Counts or ProbDistribution or QuasiDistribution): Input

distributions.

Returns:

float : Expectation value. ndarray: Array of expectation values

Notes:

Cannot mix Counts and dicts with M3 Distributions in the same call.