stdev_a

stdev_a(fs[, area])

Computes the area weighted standard deviation for each field in fs.

Parameters
  • fs (Fieldset) – input fieldset

  • area (list) – area as [N,W,S,E] to perform the computations

Return type

number or list

If the area is not specified the whole field will be used in the calculation. The result is a number for a single field or a list for a multi-field Fieldset.

Note

The computations are implemented via integrate() and the following lines are equivalent:

y = mv.stdev_a(x)
y = mv.sqrt(mv.integrate(x*x) - mv.integrate(x)**2)

Note

See also integrate(), stdev(), rms_a() and var_a().