pystra.distributions.scipydist.ScipyDist#
- class ScipyDist(name, dist_obj, startpoint=None)[source]#
Bases:
Distribution
Distribution wrapper for a frozen Scipy Stats Distribution object
Discrete random variables not yet supported.
- Attributes:
name (str): Name of the random variable
dist_obj (Scipy dist): The Scipy distribution object
startpoint (float): Start point for seach
Methods
Cumulative distribution function
getMean
getName
getStartPoint
getStdv
Compute the Jacobian
Probability density function
Plots the PDF of the distribution
Inverse cumulative distribution function
Return a sample of the distribution of length n
setStartPoint
set_location
set_scale
Transformation from u to x
Transformation from x to u
Attributes
std_normal
- cdf(x)#
Cumulative distribution function
- jacobian(u, x)#
Compute the Jacobian
- pdf(x)#
Probability density function
- plot(ax=None, **kwargs)#
Plots the PDF of the distribution
- ppf(u)#
Inverse cumulative distribution function
- sample(n=1000)#
Return a sample of the distribution of length n
- u_to_x(u)#
Transformation from u to x
- x_to_u(x)#
Transformation from x to u