How to use the chaospy.distributions.baseclass.Dist.__init__ function in chaospy

To help you get started, we’ve selected a few chaospy examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jonathf / chaospy / chaospy / distributions / cores.py View on Github external
def __init__(self, a=1):
        Dist.__init__(self, a=a)
github jonathf / chaospy / chaospy / distributions / operators / tan.py View on Github external
def __init__(self, dist):
        assert isinstance(dist, Dist)
        Dist.__init__(self, dist=dist)
github jonathf / chaospy / chaospy / distributions / operators / negative.py View on Github external
def __init__(self, dist):
        """
        Constructor.

        Args:
            dist (Dist) : distribution.
        """
        Dist.__init__(self, dist=dist)
        self._repr = {"_": [dist]}
github jonathf / chaospy / chaospy / distributions / operators / logarithmn.py View on Github external
def __init__(self, dist, base=2):
        assert isinstance(dist, Dist)
        assert numpy.all(dist.range() > 0)
        assert base > 0 and base != 1
        Dist.__init__(self, dist=dist, base=base)