Source code for UQpy.distributions.collection.Beta

from typing import Union

import scipy.stats as stats
from UQpy.distributions.baseclass import DistributionContinuous1D
from beartype import beartype


[docs]class Beta(DistributionContinuous1D): @beartype def __init__( self, a: Union[None, float, int], b: Union[None, float, int], loc: Union[None, float, int] = 0.0, scale: Union[None, float, int] = 1.0, ): """ :param a: first shape parameter :param b: second shape parameter :param loc: location parameter :param scale: scale parameter """ super().__init__( a=a, b=b, loc=loc, scale=scale, ordered_parameters=("a", "b", "loc", "scale"), ) self._construct_from_scipy(scipy_name=stats.beta)