Beispiel #1
0
 def __init__(self):
     self.xabs = [1.0, 2.0, 3.0, 4.0, 5.0]
     self.data = [1.1, 1.9, 2.9, 4.1, 5.1]
     self.errors = [0.1, 0.1, 0.1, 0.1, 0.1]
     self.upar = [0.1, 1.1]
     self.covm = clsq.covmFromErrors(self.errors)
     self.mparv = clsq.columnMatrixFromList(self.data)
     self.datav = clsq.columnMatrixFromList(self.data)
     self.uparv = clsq.columnMatrixFromList(self.upar)
     return
Beispiel #2
0
 def __init__( self ):
     self.xabs= [ 1.0, 2.0, 3.0, 4.0, 5.0 ]
     self.data= [ 1.1, 1.9, 2.9, 4.1, 5.1 ]
     self.errors= [ 0.1, 0.1, 0.1, 0.1, 0.1 ]
     self.upar= [ 0.1, 1.1 ]
     self.covm= clsq.covmFromErrors( self.errors )
     self.mparv= clsq.columnMatrixFromList( self.data )
     self.datav= clsq.columnMatrixFromList( self.data )
     self.uparv= clsq.columnMatrixFromList( self.upar )
     return
Beispiel #3
0
 def setUp( self ):
     def fun( mpar ):
         return mpar[0] + 2.0*mpar[1]**2 + 3.0*mpar[2]**3
     self.__ll= clhood.Likelihood( fun )
     mpar= [ 1.0, 2.0, 3.0 ]
     self.__mparv= columnMatrixFromList( mpar )
     return
Beispiel #4
0
    def setUp(self):
        def fun(mpar):
            return mpar[0] + 2.0 * mpar[1]**2 + 3.0 * mpar[2]**3

        self.__ll = clhood.Likelihood(fun)
        mpar = [1.0, 2.0, 3.0]
        self.__mparv = columnMatrixFromList(mpar)
        return