(dat, variable, unknowns=None)
Get the distribution of the given variable.
Get the distribution of the given variable.
Get the distribution of the given variable .
def get_distribution(dat, variable, unknowns=None):
    """Get the distribution of the given variable."""
    variable = _get_variable(dat, variable)
    if variable.is_discrete:
        return Discrete(dat, variable, unknowns)
    elif variable.is_continuous:
        return Continuous(dat, variable, unknowns)
    else:
        raise TypeError("cannot compute distribution of '%s'" % type(variable).__name__)
def get_distribution ( dat , variable , unknowns = None ) : variable = _get_variable ( dat , variable ) if variable . is_discrete : return Discrete ( dat , variable , unknowns ) elif variable . is_continuous : return Continuous ( dat , variable , unknowns ) else : raise TypeError ( "cannot compute distribution of '%s'" % type ( variable ) . __name__ )