flavour
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
freeparameter Class Reference

A parameter which will be fitted in the simulation. More...

#include <model.h>

Public Member Functions

 freeparameter (double mi, double ma, TRandom3 *r, double ss=1e-2)
 
void next (TRandom3 *r, double f=1)
 changes randomly the ::value of the parameter, the standard deviation is ::step More...
 
bool isvalid () const
 checks if the value of the parameter is between ::min and ::max More...
 
double dist (double x) const
 probability distribution, to be used by the Markov Chain Monte Carlo simulation More...
 

Public Attributes

double min
 minimum possible value for the parameter More...
 
double max
 maximum possible value for the parameter More...
 
double value
 value of the parameter More...
 
double step
 standard deviation of the random changes of ::value in next(TRandom3 *) More...
 

Detailed Description

A parameter which will be fitted in the simulation.

Definition at line 124 of file model.h.

Constructor & Destructor Documentation

freeparameter::freeparameter ( double  mi,
double  ma,
TRandom3 *  r,
double  ss = 1e-2 
)
inline
Parameters
miminimum possible value for the parameter
mamaximum possible value for the parameter
rrandom number generator

Definition at line 130 of file model.h.

Member Function Documentation

double freeparameter::dist ( double  x) const
inline

probability distribution, to be used by the Markov Chain Monte Carlo simulation

Returns
$(\frac{x-::value}{::step})^2$

Definition at line 146 of file model.h.

bool freeparameter::isvalid ( ) const
inline

checks if the value of the parameter is between ::min and ::max

Definition at line 140 of file model.h.

void freeparameter::next ( TRandom3 *  r,
double  f = 1 
)
inline

changes randomly the ::value of the parameter, the standard deviation is ::step

Parameters
rrandom number generator

Definition at line 135 of file model.h.

Member Data Documentation

double freeparameter::max

maximum possible value for the parameter

Definition at line 152 of file model.h.

double freeparameter::min

minimum possible value for the parameter

Definition at line 150 of file model.h.

double freeparameter::step

standard deviation of the random changes of ::value in next(TRandom3 *)

Definition at line 156 of file model.h.

double freeparameter::value

value of the parameter

Definition at line 154 of file model.h.


The documentation for this class was generated from the following file: