var_a
- var_a(fs[, area])
Computes the area weighted variance for each field in
fs
.- Parameters
fs (
Fieldset
) – input fieldsetarea (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-fieldFieldset
.Note
The computations are implemented via
integrate()
and the following lines are equivalent:y = mv.var_a(x) y = mv.integrate(x*x) - mv.integrate(x)**2
Note
See also
integrate()
,var()
,rms_a()
andstdev_a()
.