chaospy.Trunc

class chaospy.Trunc(dist, lower=None, upper=None)[source]

Truncation.

__init__(dist, lower=None, upper=None)[source]

Constructor.

Args:
dist (Distribution):

Distribution to be truncated.

lower (Distribution, numpy.ndarray):

Lower truncation bound.

upper (Distribution, numpy.ndarray):

Upper truncation bound.

Methods

pdf(x_data[, decompose, allow_approx, step_size])

Probability density function.

cdf(x_data)

Cumulative distribution function.

fwd(x_data)

Forward Rosenblatt transformation.

inv(q_data[, max_iterations, tollerance])

Inverse Rosenblatt transformation.

sample([size, rule, antithetic, ...])

Create pseudo-random generated samples.

mom(K[, allow_approx])

Raw statistical moments.

ttr(kloc)

Three terms relation's coefficient generator.

Attributes

interpret_as_integer

Flag indicating that return value from the methods sample, and inv should be interpreted as integers instead of floating point.

lower

Lower bound for the distribution.

stochastic_dependent

True if distribution contains stochastically dependent components.

upper

Upper bound for the distribution.