particles.distributions.LinearD

class LinearD(base_dist, a=1.0, b=0.0)[source]

Distribution of Y = a*X + b.

See TransformedDist.

Parameters:
  • base_dist (ProbDist) – The distribution of X

  • a (float (a should be != 0)) –

  • b (float (a should be != 0)) –

__init__(base_dist, a=1.0, b=0.0)[source]

Methods

__init__(base_dist[, a, b])

error_msg(method)

f(x)

finv(x)

Inverse of f.

logJac(x)

Log of Jacobian.

logpdf(x)

pdf(x)

ppf(u)

rvs([size])

shape(size)

Attributes

dim