def __init__(self, **kwargs): LogicFormula.__init__(self, **kwargs) self.facts = {} self.groups = {} self.probability = 1.0 # Try to compute self.values = [] self.distributions = { 'normal': random.normalvariate, 'gaussian': random.normalvariate, 'poisson': sample_poisson, 'exponential': random.expovariate, 'beta': random.betavariate, 'gamma': random.gammavariate, 'uniform': random.uniform, 'triangular': random.triangular, 'vonmises': random.vonmisesvariate, 'weibull': random.weibullvariate, }
def __init__(self, **kwargs): LogicFormula.__init__(self, **kwargs) self.facts = {} self.groups = {} self.probability = 1.0 # Try to compute self.values = [] self.distributions = { "normal": random.normalvariate, "gaussian": random.normalvariate, "poisson": sample_poisson, "exponential": random.expovariate, "beta": random.betavariate, "gamma": random.gammavariate, "uniform": random.uniform, "triangular": random.triangular, "vonmises": random.vonmisesvariate, "weibull": random.weibullvariate, "in_range": random.randint, }
def __init__(self) : LogicFormula.__init__(self) self.facts = {} self.groups = {} self.probability = 1.0