BaseMultivariateSliceDistribution.var (function)
def var(self, unit=None, as_quantity=False, wrap_at=None)
Expose the variance of the distribution.
See scipy docs
This method is just a wrapper around the scipy.stats method on BaseMultivariateSliceDistribution.dist_constructor_object with unit-conversions, support for quantity objects, and wrapping done on the returned result.
See also:
- BaseMultivariateSliceDistribution.median
- BaseMultivariateSliceDistribution.mean
- BaseMultivariateSliceDistribution.std
Arguments
unit(astropy.unit, optional, default=None): unit of the values inxto expose. If None or not provided, will assume they're in BaseMultivariateSliceDistribution.unit.as_quantity(bool, optional, default=False): whether to return an astropy quantity object instead of just the value. Astropy must be installed.wrap_at(float, None, or False, optional, default=None): value to use for wrapping. See BaseMultivariateSliceDistribution.wrap. If not provided or None, will use the value from BaseMultivariateSliceDistribution.wrap_at. Note: wrapping is computed before changing units, sowrap_atmust be provided according to BaseMultivariateSliceDistribution.unit notunit.
Returns
- (float) variance of the distribution in units
unit.