jhpro.upropog
Class UPropogate
- java.lang.Object
-
- jhpro.upropog.UPropogate
-
public class UPropogate extends java.lang.ObjectPropagation of uncertainties (or errors) for a complex function using a Monte Carlo method. We assume uncertainties are distributed according to a normal distribution (Gaussian).
-
-
Constructor Summary
Constructors Constructor and Description UPropogate(FNon f, java.util.ArrayList par, java.util.ArrayList par_err, java.util.ArrayList var, java.util.ArrayList var_err, int NTOT)Initialize propagation of uncertainties (or errors).UPropogate(FNon f, double[] par, double[] par_err, double[] var, double[] var_err, int NTOT)Initialize propagation of uncertainties (or errors).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description H1DgetHisto()Get a histogram representing a spread of the final function from Monte Carlo simulation.doublegetStd()Get total uncertainty as standard deviation.
-
-
-
Constructor Detail
-
UPropogate
public UPropogate(FNon f, double[] par, double[] par_err, double[] var, double[] var_err, int NTOT)
Initialize propagation of uncertainties (or errors). The list with errors include uncertainties on the parameters plus on the function avariable. They can be zero if you do not want any uncertainties.- Parameters:
f- input functionpar- a list with parameters valuespar_err- a list with uncertainties for parametersvar- a list with variables around which function should be evaluatedvar_err- a list with uncertainties for variables (can be zero) (can be all zero)NTOT- total number of Monte Carlo events. the more is the better.
-
UPropogate
public UPropogate(FNon f, java.util.ArrayList par, java.util.ArrayList par_err, java.util.ArrayList var, java.util.ArrayList var_err, int NTOT)
Initialize propagation of uncertainties (or errors). The list with errors include uncertainties on the parameters plus on the function avariable. They can be zero if you do not want any uncertainties.- Parameters:
f- input functionpar- a list with parameters valuespar_err- a list with uncertainties for parametersvar- a list with variables around which function should be evaluatedvar_err- a list with uncertainties for variables (can be zero) (can be all zero)NTOT- total number of Monte Carlo events. the more is the better.
-
-
Method Detail
-
getStd
public double getStd()
Get total uncertainty as standard deviation.- Returns:
- total uncertainty
-
getHisto
public H1D getHisto()
Get a histogram representing a spread of the final function from Monte Carlo simulation.- Returns:
- histogram from Monte Carlo simulation
-
-
DMelt 3.0 © DataMelt by jWork.ORG