hep.aida.ref.fitter
Class FitResult

java.lang.Object
  extended by hep.aida.ref.fitter.FitResult
All Implemented Interfaces:
hep.aida.dev.IDevFitResult, IFitResult

public class FitResult
extends Object
implements hep.aida.dev.IDevFitResult


Constructor Summary
FitResult(int dim)
           
FitResult(int dim, double seconds)
           
 
Method Summary
 String[] constraints()
           
 double covMatrixElement(int i, int j)
           
 String dataDescription()
           
 String engineName()
           
 double[] errors()
          Get the parabolic errors on the fitted parameters.
 double[] errorsMinus()
          Get the negative part of the asymmetric errors on the fitted parameters.
 double[] errorsPlus()
          Get the positive part of the asymmetric errors on the fitted parameters.
 String fitMethodName()
           
 IFitParameterSettings fitParameterSettings(String parName)
           
 int fitStatus()
           
 IFunction fittedFunction()
           
 double fittedParameter(String name)
          Get the value of a fitted parameter by name.
 String[] fittedParameterNames()
          Get the names of the fitted parameters (including fixed and constrained ones).
 double[] fittedParameters()
          Get the array of the fitted parameter values (including fixed and constrained ones).
 boolean isValid()
           
 int ndf()
           
 void printResult()
           
 double quality()
           
 void setConstraints(String[] constraints)
           
 void setCovMatrixElement(int xCol, int yCol, double covEl)
           
 void setDataDescription(String dataDescription)
           
 void setEngineName(String engineName)
           
 void setFitMethodName(String fitMethod)
           
 void setFitParameterSettings(String parName, IFitParameterSettings parSetting)
          Set a dynamically allocated object (created with new).
 void setFitStatus(int fitStatus)
           
 void setFittedFunction(IFunction function)
          Set dynamically allocated function object (new).
 void setIsValid(boolean isValid)
           
 void setNdf(int nDof)
           
 void setQuality(double quality)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FitResult

public FitResult(int dim)

FitResult

public FitResult(int dim,
                 double seconds)
Method Detail

constraints

public String[] constraints()
Specified by:
constraints in interface IFitResult

covMatrixElement

public double covMatrixElement(int i,
                               int j)
Specified by:
covMatrixElement in interface IFitResult

dataDescription

public String dataDescription()
Specified by:
dataDescription in interface IFitResult

engineName

public String engineName()
Specified by:
engineName in interface IFitResult

fitMethodName

public String fitMethodName()
Specified by:
fitMethodName in interface IFitResult

fitParameterSettings

public IFitParameterSettings fitParameterSettings(String parName)
Specified by:
fitParameterSettings in interface IFitResult

fitStatus

public int fitStatus()
Specified by:
fitStatus in interface IFitResult

fittedFunction

public IFunction fittedFunction()
Specified by:
fittedFunction in interface IFitResult

isValid

public boolean isValid()
Specified by:
isValid in interface IFitResult

ndf

public int ndf()
Specified by:
ndf in interface IFitResult

quality

public double quality()
Specified by:
quality in interface IFitResult

setConstraints

public void setConstraints(String[] constraints)
Specified by:
setConstraints in interface hep.aida.dev.IDevFitResult

setCovMatrixElement

public void setCovMatrixElement(int xCol,
                                int yCol,
                                double covEl)
Specified by:
setCovMatrixElement in interface hep.aida.dev.IDevFitResult

setDataDescription

public void setDataDescription(String dataDescription)
Specified by:
setDataDescription in interface hep.aida.dev.IDevFitResult

setEngineName

public void setEngineName(String engineName)
Specified by:
setEngineName in interface hep.aida.dev.IDevFitResult

setFitMethodName

public void setFitMethodName(String fitMethod)
Specified by:
setFitMethodName in interface hep.aida.dev.IDevFitResult

setFitParameterSettings

public void setFitParameterSettings(String parName,
                                    IFitParameterSettings parSetting)
Description copied from interface: hep.aida.dev.IDevFitResult
Set a dynamically allocated object (created with new). This class takes ownership and should properly delete it. As a caller of this method you should not manually delete 's' object after you set it here.

Specified by:
setFitParameterSettings in interface hep.aida.dev.IDevFitResult

setFitStatus

public void setFitStatus(int fitStatus)
Specified by:
setFitStatus in interface hep.aida.dev.IDevFitResult

setFittedFunction

public void setFittedFunction(IFunction function)
Description copied from interface: hep.aida.dev.IDevFitResult
Set dynamically allocated function object (new). IDevFitResult object takes ownership and should properly delete it. As a caller of this method you should not manually delete f after you set it here.

Specified by:
setFittedFunction in interface hep.aida.dev.IDevFitResult

setIsValid

public void setIsValid(boolean isValid)
Specified by:
setIsValid in interface hep.aida.dev.IDevFitResult

setNdf

public void setNdf(int nDof)
Specified by:
setNdf in interface hep.aida.dev.IDevFitResult

setQuality

public void setQuality(double quality)
Specified by:
setQuality in interface hep.aida.dev.IDevFitResult

fittedParameters

public double[] fittedParameters()
Description copied from interface: IFitResult
Get the array of the fitted parameter values (including fixed and constrained ones).

Specified by:
fittedParameters in interface IFitResult
Returns:
The array containing the fitted values.

fittedParameterNames

public String[] fittedParameterNames()
Description copied from interface: IFitResult
Get the names of the fitted parameters (including fixed and constrained ones).

Specified by:
fittedParameterNames in interface IFitResult
Returns:
The array containing the names of the fitted parameters.

fittedParameter

public double fittedParameter(String name)
Description copied from interface: IFitResult
Get the value of a fitted parameter by name.

Specified by:
fittedParameter in interface IFitResult
Returns:
The value.

errors

public double[] errors()
Description copied from interface: IFitResult
Get the parabolic errors on the fitted parameters. If a parameter was fixed or constrained the error is zero.

Specified by:
errors in interface IFitResult
Returns:
The parabolic errors on the fitted parameters.

errorsPlus

public double[] errorsPlus()
Description copied from interface: IFitResult
Get the positive part of the asymmetric errors on the fitted parameters. If a parameter was fixed or constrained the error is zero.

Specified by:
errorsPlus in interface IFitResult
Returns:
The positive part of the asymmetric errors on the fitted parameters.

errorsMinus

public double[] errorsMinus()
Description copied from interface: IFitResult
Get the negative part of the asymmetric errors on the fitted parameters. If a parameter was fixed or constrained the error is zero.

Specified by:
errorsMinus in interface IFitResult
Returns:
The negative part of the asymmetric errors on the fitted parameters.

printResult

public void printResult()


jHepWork 3.2 © jWork.org