# Since we are using Minuit, we can set limits on the parameters. If # we wanted to do that we would uncomment the following. #migrad.setLimits ( 0, -2., -1. ) # Minimize the Chi Sq migrad.minimize() # Print the resulting parameters print f.getParameters() # Add the function to the display of the data fl = Linear () disp.addFunction ( f ) # Add the function to the factory so it can be used from the GUI # One might just do this instead of using the minimizers directly from hippo import FunctionFactory ff = FunctionFactory.instance() ff.add ( f ) # Create an DataArray with columns not in order expected by the fitter da2 = DataArray ( 'NTuple' ) # use NTuple to store data da2.register ( 'randomized line 2' ) # name the data source # Fill the contents by adding named columns in the order expected by # the fitter (more later)