from __future__ import division
from ..errors import UndefinedDistributionError
from .base import UncertaintyBase
from numpy import repeat, tile


class UndefinedUncertainty(UncertaintyBase):

    """Undefined or unknown uncertainty"""
    id = 0
    description = "Undefined or unknown uncertainty"

    @classmethod
    def random_variables(cls, params, size, seeded_random=None):
        return repeat(params['loc'], size).reshape((params.shape[0],
                                                    size))

    @classmethod
    def cdf(cls, params, vector):
        raise UndefinedDistributionError(
            "Can't calculate percentages for an undefined distribution.")

    @classmethod
    def ppf(cls, params, percentages):
        return tile(params['loc'].reshape((params.shape[0], 1)),
                    percentages.shape[1])


class NoUncertainty(UndefinedUncertainty):
    id = 1
    description = "No uncertainty"

b2b2e1843657383b3e9baf3491a1707e7089d3b4
<mask token>


class UndefinedUncertainty(UncertaintyBase):
    <mask token>
    <mask token>
    <mask token>

    @classmethod
    def random_variables(cls, params, size, seeded_random=None):
        return repeat(params['loc'], size).reshape((params.shape[0], size))

    @classmethod
    def cdf(cls, params, vector):
        raise UndefinedDistributionError(
            "Can't calculate percentages for an undefined distribution.")

    @classmethod
    def ppf(cls, params, percentages):
        return tile(params['loc'].reshape((params.shape[0], 1)),
            percentages.shape[1])


class NoUncertainty(UndefinedUncertainty):
    id = 1
    description = 'No uncertainty'

<mask token>


class UndefinedUncertainty(UncertaintyBase):
    <mask token>
    id = 0
    description = 'Undefined or unknown uncertainty'

    @classmethod
    def random_variables(cls, params, size, seeded_random=None):
        return repeat(params['loc'], size).reshape((params.shape[0], size))

    @classmethod
    def cdf(cls, params, vector):
        raise UndefinedDistributionError(
            "Can't calculate percentages for an undefined distribution.")

    @classmethod
    def ppf(cls, params, percentages):
        return tile(params['loc'].reshape((params.shape[0], 1)),
            percentages.shape[1])


class NoUncertainty(UndefinedUncertainty):
    id = 1
    description = 'No uncertainty'

<mask token>


class UndefinedUncertainty(UncertaintyBase):
    """Undefined or unknown uncertainty"""
    id = 0
    description = 'Undefined or unknown uncertainty'

    @classmethod
    def random_variables(cls, params, size, seeded_random=None):
        return repeat(params['loc'], size).reshape((params.shape[0], size))

    @classmethod
    def cdf(cls, params, vector):
        raise UndefinedDistributionError(
            "Can't calculate percentages for an undefined distribution.")

    @classmethod
    def ppf(cls, params, percentages):
        return tile(params['loc'].reshape((params.shape[0], 1)),
            percentages.shape[1])


class NoUncertainty(UndefinedUncertainty):
    id = 1
    description = 'No uncertainty'

from __future__ import division
from ..errors import UndefinedDistributionError
from .base import UncertaintyBase
from numpy import repeat, tile


class UndefinedUncertainty(UncertaintyBase):
    """Undefined or unknown uncertainty"""
    id = 0
    description = 'Undefined or unknown uncertainty'

    @classmethod
    def random_variables(cls, params, size, seeded_random=None):
        return repeat(params['loc'], size).reshape((params.shape[0], size))

    @classmethod
    def cdf(cls, params, vector):
        raise UndefinedDistributionError(
            "Can't calculate percentages for an undefined distribution.")

    @classmethod
    def ppf(cls, params, percentages):
        return tile(params['loc'].reshape((params.shape[0], 1)),
            percentages.shape[1])


class NoUncertainty(UndefinedUncertainty):
    id = 1
    description = 'No uncertainty'

from __future__ import division
from ..errors import UndefinedDistributionError
from .base import UncertaintyBase
from numpy import repeat, tile


class UndefinedUncertainty(UncertaintyBase):

    """Undefined or unknown uncertainty"""
    id = 0
    description = "Undefined or unknown uncertainty"

    @classmethod
    def random_variables(cls, params, size, seeded_random=None):
        return repeat(params['loc'], size).reshape((params.shape[0],
                                                    size))

    @classmethod
    def cdf(cls, params, vector):
        raise UndefinedDistributionError(
            "Can't calculate percentages for an undefined distribution.")

    @classmethod
    def ppf(cls, params, percentages):
        return tile(params['loc'].reshape((params.shape[0], 1)),
                    percentages.shape[1])


class NoUncertainty(UndefinedUncertainty):
    id = 1
    description = "No uncertainty"
