Beispiel #1
0
    def __init__(self, history, parameters, basename="out"):
        """Creates an experiment class for uncertainty analysis methods for kinematic models
        **Arguments**:
         - *history* = The .his file this experiment is based on
         - *parameters* = A string pointing to a csv file defining the statistical
                          properties of the model properties being varied, or alternatively an array 
                          of python dictionaries with the same function. This file/dictionary array
                          should have collumns/keys defining:
                              1) the event and parameter being varied (titled 'event' and 'parameter')
                              2) the statistical distribution to sample from (titled 'type' and containing either 'normal',
                                 'vonmises' or 'uniform')
                              3) the distribution mean (titled 'mean') and,
                              4) a collumn defining the distance between the 2.5th and 97.5th percentiles 
                                 (titled '+-') OR one defining the standard deviation (titled 'stdev')
        """

        # init monte carlo class
        MonteCarlo.__init__(self, history, parameters, basename)

        # add empty block (otherwise something breaks...)
        self.block = None