Documentation / Manuel développeur
Modules disponibles
Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,  
Uranie / Calibration v4.9.0
|
#include <TABC.h>
Public Member Functions | |
Constructor and Destructor | |
TABC (URANIE::DataServer::TDataServer *tds, URANIE::Relauncher::TRun *run, int ns=100, Option_t *option="") | |
Default ABC constructor with the runner argument: it contains the assessor to be used. | |
TABC (URANIE::DataServer::TDataServer *tds, void(*fcn)(Double_t *, Double_t *), const char *varexpinput, const char *varexpoutput, int ns=100, Option_t *option="") | |
Default ABC constructor with the function argument: it contains the assessor to be used | |
TABC (URANIE::DataServer::TDataServer *tds, const char *fcn, const char *varexpinput, const char *varexpoutput, int ns=100, Option_t *option="") | |
Default ABC constructor with the function argument: it contains the assessor to be used. | |
TABC (URANIE::DataServer::TDataServer *tds, URANIE::Launcher::TCode *fcode, int ns=1, Option_t *option="") | |
Default ABC constructor with the code argument: it contains the assessor to be used. | |
virtual | ~TABC () |
Default destructor. | |
Initialisation methods | |
void | initABC () |
ABC functions | |
void | setUpABC () |
void | computeABC (int nEval) |
void | computeABCscore (Double_t newEpsilon) |
void | posteriorToPar () |
void | checktdsParContent () |
Setting and Getting attributs | |
void | setGaussianNoise (const char *stdname) |
void | setPercentile (Double_t eps) |
Set the percentile. | |
URANIE::DataServer::TDataServer * | getTdsPosterior () |
Get the posterior tds. | |
double | getThreshold () |
Get the posterior tds | |
int | getNEval () |
Public Member Functions inherited from URANIE::Calibration::TCalibration | |
TCalibration (URANIE::DataServer::TDataServer *tds, URANIE::Relauncher::TRun *run, int ns=1, Option_t *option="") | |
Default constructor with the runner argument: it contains the assessor to be used. | |
TCalibration (URANIE::DataServer::TDataServer *tds, void(*fcn)(Double_t *, Double_t *), const char *varexpinput, const char *varexpoutput, int ns=1, Option_t *option="") | |
Default Calibration constructor with the function argument: it contains the assessor to be used. | |
TCalibration (URANIE::DataServer::TDataServer *tds, const char *fcn, const char *varexpinput, const char *varexpoutput, int ns=1, Option_t *option="") | |
Default Calibration constructor with the function argument: it contains the assessor to be used. | |
TCalibration (URANIE::DataServer::TDataServer *tds, URANIE::Launcher::TCode *fcode, int ns=1, const char *option="") | |
Default Calibration constructor with the code argument: it contains the assessor to be used. | |
virtual | ~TCalibration () |
Default destructor. | |
virtual void | setDistanceAndReference (const char *funcName, URANIE::DataServer::TDataServer *tdsRef, const char *input, const char *reference, const char *weight="") |
Set the distance function and some needed informations. | |
virtual void | setDistanceAndReference (URANIE::Calibration::TDistanceFunction *distFunc, URANIE::DataServer::TDataServer *tdsRef, const char *input, const char *reference, const char *weight="") |
Set the distance function and some needed informations. | |
void | estimateParameters (Option_t *option="") |
void | estimateCustomResidues (string resName, int n_theta, double *theta) |
void | checkReference (URANIE::DataServer::TDataServer *tdsRef, const char *input, const char *output, const char *weight) |
Check the consistency of the formation provided. | |
virtual void | drawParameters (TString sTitre, const char *variable="*", const char *select="1>0", Option_t *option="") |
void | drawResidues (TString sTitre, const char *variable="*", const char *select="1>0", Option_t *option="") |
void | setLog () |
void | unsetLog () |
void | changeLog () |
Bool_t | getLog () |
virtual void | printLog (Option_t *option="") |
Int_t | getID () |
void | setSeed (UInt_t nval) |
Set the seed of the random generator if one is used. | |
UInt_t | getSeed () |
Get the seed of the random generator if one is used. | |
const char * | getMethodName () |
Get the method name. | |
void | setObservationCovarianceMatrix (TMatrixD &mat) |
Set the observatiton covariance matrix. | |
URANIE::Calibration::TDistanceFunction * | getDistanceFunction () |
Return the distance function. | |
Int_t | getNPar () |
Get the number of parameters to be calibrated. | |
URANIE::DataServer::TDataServer * | getEvaluationTDS () |
Get the tds in which evaluation will be performed. | |
Public Attributes | |
vector< double > | _values |
URANIE::DataServer::TDataServer * | _tdsPosterior |
TDS containing posterior members for calibration. | |
Public Attributes inherited from URANIE::Calibration::TCalibration | |
URANIE::DataServer::TDataServer * | _tdsPar |
TDS containing parameters properties (parameters that should be calibrated) | |
URANIE::DataServer::TDataServer * | _tdsObs |
TDS containing observations used for calibration. | |
URANIE::DataServer::TDataServer * | _tdsEval |
TDS containing a priori / a posteriori evaluations. | |
ELauncher | _nLauncher |
The type of launcher. | |
TString | _sFunctionName |
The Name of the evaluatuor. | |
TString | _sEI |
The Name of input. | |
TString | _sEO |
The Name of output. | |
URANIE::Launcher::TCode * | _code |
The tcode. | |
URANIE::Relauncher::TRun * | _run |
Pointer to the runner to be used. | |
void(* | _pFunction )(double *, double *) |
Function pointer. | |
vector< URANIE::DataServer::TStochasticAttribute * > | _vatt |
internal vector of stochastic attribute for some methods | |
Protected Attributes | |
double | _threshold |
Int_t | _kPosterior |
Int_t | _kEval |
TRandom3 * | _rand |
Bool_t | _boolEpsilon |
Double_t | _Epsilon |
Protected Attributes inherited from URANIE::Calibration::TCalibration | |
URANIE::Calibration::TDistanceFunction * | _dFunc |
Pointer to chosen distance function. | |
URANIE::DataServer::TDSNtupleD * | _evTuple |
Pointer to the eval ntuple. | |
TList * | _listOfParameters |
List of the parameters to be calibrated. | |
TCanvas * | _canvas |
Canvas object to deal with. | |
TObjArray * | _drawingGarbageCollector |
Garbage collector for prints. | |
int | _nSam |
The number of sample in a posteriori distributions. | |
int | _nObs |
The number of observations in the reference database. | |
int | _nIterMax |
The maximum number of iteration allowed (meaning total number of code estimation is _nIterMax * _nObs) | |
int | _nPar |
Dimension of the parameters. | |
int | _nVar |
Dimension of the output and references to be compared with. | |
int | _nSeed |
The seed of the random generator. | |
TString | _sMethodName |
The method name. | |
TString | _referenceName |
The reference name. | |
TString | _outputName |
The output name. | |
vector< string > | _vrefName |
The reference names. | |
vector< string > | _voutName |
The output names. | |
TString | _weightName |
The weight name. | |
TMatrixD | _mObsCovMat |
Observation Covariance matrix. | |
bool | _buseMatrix |
Use matrix instead of vectors in the Distance Function. | |
bool | _bsaveAll |
Whether all evaluations should be saved, not only a priori and a posteriori. | |
bool | _bdontKeepAgreement |
Remove the agreement attribute from the tdsPar object. | |
bool | _buseMode |
Use Mode instead of Mean. | |
Bool_t | _blog |
Boolean for edit the log. | |
Additional Inherited Members | |
Public Types inherited from URANIE::Calibration::TCalibration | |
enum | ELauncher { kCode , kFunction , kRun , kUnknown } |
Protected Member Functions inherited from URANIE::Calibration::TCalibration | |
virtual void | computeParameters (Option_t *option="")=0 |
internal method in which the estimation is performed for all inheriting classes | |
void | checkCanvasCreation (bool newcan) |
Create a canvas if needed. | |
void | initInputs () |
Initialise some common inputs. | |
void | initResults (vector< string > *ParsedLines) |
Initialise some common inputs. | |
void | computeAPosterioriForDistribution () |
Compute the a posteriori residual for many-solutions method. | |
virtual void | parseOption (Option_t *option="") |
Read the possible options. | |
void | setMethodName (const char *str) |
Set the Method name. | |
Constructor & Destructor Documentation
◆ TABC() [1/4]
URANIE::Calibration::TABC::TABC | ( | URANIE::DataServer::TDataServer * | tds, |
URANIE::Relauncher::TRun * | run, | ||
int | ns = 100 , |
||
Option_t * | option = "" |
||
) |
Default ABC constructor with the runner argument: it contains the assessor to be used.
- Parameters
-
tds : the dataserver that contains no data but only one attribute per parameter to be calibrated run : the runner that contains the assessor to be used on the reference data ns : number of sample to be generated (depending on the method)
References URANIE::Calibration::TCalibration::_blog, checktdsParContent(), initABC(), and URANIE::Calibration::TCalibration::parseOption().
◆ TABC() [2/4]
URANIE::Calibration::TABC::TABC | ( | URANIE::DataServer::TDataServer * | tds, |
void(*)(Double_t *, Double_t *) | fcn, | ||
const char * | varexpinput, | ||
const char * | varexpoutput, | ||
int | ns = 100 , |
||
Option_t * | option = "" |
||
) |
Default ABC constructor with the function argument: it contains the assessor to be used
- Parameters
-
tds : the dataserver that contains no data but only one attribute per parameter to be calibrated fcn : the pointer to a function ns : number of sample to be generated (depending on the method) varexpinput : the input variable for the function in the correct order (both input and parameters) varexpoutput : the output of the function in the correct order
References checktdsParContent(), initABC(), and URANIE::Calibration::TCalibration::parseOption().
◆ TABC() [3/4]
URANIE::Calibration::TABC::TABC | ( | URANIE::DataServer::TDataServer * | tds, |
const char * | fcn, | ||
const char * | varexpinput, | ||
const char * | varexpoutput, | ||
int | ns = 100 , |
||
Option_t * | option = "" |
||
) |
Default ABC constructor with the function argument: it contains the assessor to be used.
- Parameters
-
tds : the dataserver that contains no data but only one attribute per parameter to be calibrated fcn : the name of the function ns : number of sample to be generated (depending on the method) varexpinput : the input variable for the function in the correct order (both input and parameters) varexpoutput : the output of the function in the correct order
References checktdsParContent(), initABC(), and URANIE::Calibration::TCalibration::parseOption().
◆ TABC() [4/4]
URANIE::Calibration::TABC::TABC | ( | URANIE::DataServer::TDataServer * | tds, |
URANIE::Launcher::TCode * | fcode, | ||
int | ns = 1 , |
||
Option_t * | option = "" |
||
) |
Default ABC constructor with the code argument: it contains the assessor to be used.
- Parameters
-
tds : the dataserver that contains no data but only one attribute per parameter to be calibrated code : the code object that will be runned ns : number of sample to be generated (depending on the method)
References checktdsParContent(), and initABC().
◆ ~TABC()
|
virtual |
Default destructor.
References URANIE::Calibration::TCalibration::_blog, _rand, and _tdsPosterior.
Member Function Documentation
◆ checktdsParContent()
|
virtual |
Check the content of the input dataserver
Implements URANIE::Calibration::TCalibration.
References URANIE::Calibration::TCalibration::_blog, URANIE::Calibration::TCalibration::_listOfParameters, URANIE::Calibration::TCalibration::_nPar, URANIE::Calibration::TCalibration::_tdsPar, URANIE::Calibration::TCalibration::_vatt, and URANIE::Calibration::TCalibration::setMethodName().
◆ computeABC()
void URANIE::Calibration::TABC::computeABC | ( | int | nEval | ) |
References URANIE::Calibration::TCalibration::_blog, URANIE::Calibration::TCalibration::_dFunc, _kEval, URANIE::Calibration::TCalibration::_nPar, _rand, URANIE::Calibration::TCalibration::_tdsPar, _values, URANIE::Calibration::TCalibration::_vatt, and URANIE::Calibration::TDistanceFunction::eval().
Referenced by ClassImp(), and URANIE::Calibration::TRejectionABC::computeParameters().
◆ computeABCscore()
void URANIE::Calibration::TABC::computeABCscore | ( | Double_t | newEpsilon | ) |
◆ getNEval()
|
inline |
References _kEval.
◆ getTdsPosterior()
|
inline |
Get the posterior tds.
References _tdsPosterior.
◆ getThreshold()
|
inline |
Get the posterior tds
References _threshold.
◆ initABC()
void URANIE::Calibration::TABC::initABC | ( | ) |
References _Epsilon, _kEval, _kPosterior, _rand, _tdsPosterior, and URANIE::Calibration::TCalibration::setMethodName().
◆ posteriorToPar()
void URANIE::Calibration::TABC::posteriorToPar | ( | ) |
References URANIE::Calibration::TCalibration::_listOfParameters, URANIE::Calibration::TCalibration::_nPar, URANIE::Calibration::TCalibration::_tdsPar, _tdsPosterior, and URANIE::Calibration::TCalibration::computeAPosterioriForDistribution().
Referenced by ClassImp(), and URANIE::Calibration::TRejectionABC::computeParameters().
◆ setGaussianNoise()
void URANIE::Calibration::TABC::setGaussianNoise | ( | const char * | stdname | ) |
Add gaussian noise for deterministic model
- Parameters
-
stdname : name of the attribute in the observed dataserver that will be used to introduce gaussian noise
References URANIE::Calibration::TCalibration::_dFunc, and URANIE::Calibration::TDistanceFunction::setGaussianRandomNoise().
◆ setPercentile()
|
inline |
Set the percentile.
References _boolEpsilon, and _Epsilon.
◆ setUpABC()
void URANIE::Calibration::TABC::setUpABC | ( | ) |
Member Data Documentation
◆ _boolEpsilon
|
protected |
Referenced by ClassImp(), URANIE::Calibration::TRejectionABC::computeParameters(), and setPercentile().
◆ _Epsilon
|
protected |
Referenced by ClassImp(), URANIE::Calibration::TRejectionABC::computeParameters(), initABC(), and setPercentile().
◆ _kEval
|
protected |
Referenced by ClassImp(), computeABC(), getNEval(), and initABC().
◆ _kPosterior
|
protected |
Referenced by computeABCscore(), and initABC().
◆ _rand
|
protected |
Referenced by ClassImp(), computeABC(), initABC(), setUpABC(), and ~TABC().
◆ _tdsPosterior
URANIE::DataServer::TDataServer* URANIE::Calibration::TABC::_tdsPosterior |
TDS containing posterior members for calibration.
Referenced by ClassImp(), computeABCscore(), getTdsPosterior(), initABC(), posteriorToPar(), setUpABC(), and ~TABC().
◆ _threshold
|
protected |
Referenced by ClassImp(), URANIE::Calibration::TRejectionABC::computeParameters(), and getThreshold().
◆ _values
vector<double> URANIE::Calibration::TABC::_values |
Referenced by ClassImp(), and computeABC().