Uniform.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 Uniform.dist_constructor_object after doing any requested unit-conversions.

Arguments

  • 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)

Returns

  • the output from scipy (see link above)