Samples.expect (function)
def expect(self, func, args=(), lb=None, ub=None, conditional=False, **kwargs)
Expose the expected value of a function (of one argument) with respect to the distribution.
See scipy docs
This method is just a wrapper around the scipy.stats method on Samples.dist_constructor_object after doing any requested unit-conversions.
func
(callable): passed directly to scipy (see link above)args
(tuple, optional): passed directly to scipy (see link above)lb
(float, optional): passed directly to scipy (see link above)ub
(float, optional): passed directly to scipy (see link above)conditional
(bool, optional, default=False): passed directly to scipy (see link above)**kwargs
: passed directly to scipy (see link above)
- the output from scipy (see link above)