Documentation / Manuel développeur
Modules disponibles
Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,  ![]() |
Uranie / Calibration
v4.10.0
|
URANIE::Calibration::TWeightedLSDistanceFunction Class Reference
Description of the class TWeightedLSDistanceFunction
The distance is estimated as
\[ Dist = \sum_{i=1}^{n_{Var}} \alpha_i \times \sqrt{ \sum_{j=1}^{n_{Obs}} \beta_{j} (\mathbf{y^{j}_{i,Obs}} - \mathbf{y^{j}_{i,Est}})^{2}} \]
where. More...
#include <TStandardDistanceFunction.h>
Inheritance diagram for URANIE::Calibration::TWeightedLSDistanceFunction:

Collaboration diagram for URANIE::Calibration::TWeightedLSDistanceFunction:

Public Member Functions | |
Constructor and Destructor | |
| TWeightedLSDistanceFunction (URANIE::DataServer::TDataServer *tdsEval, URANIE::DataServer::TDataServer *tdsObs, const char *reference, const char *output, const char *weight="") | |
| Default constructor. More... | |
| virtual | ~TWeightedLSDistanceFunction () |
| Default destructor. More... | |
Estimate | |
| Int_t | localeval (Double_t *res) |
Public Member Functions inherited from URANIE::Calibration::TDistanceFunction | |
| TDistanceFunction (URANIE::DataServer::TDataServer *tdsEval, URANIE::DataServer::TDataServer *tdsObs, const char *reference, const char *output, const char *weight="") | |
| Standard constructor. More... | |
| virtual | ~TDistanceFunction () |
| Default destructor. More... | |
| void | fillInOutAtt (URANIE::DataServer::TDataServer *tdsPar) |
| Internal initialisation method. More... | |
| void | initParameters (URANIE::DataServer::TDataServer *tdsPar, URANIE::Relauncher::TRun *run) |
| void | initParameters (URANIE::DataServer::TDataServer *tdsPar, const char *funcName, const char *varexpinput, const char *varexpoutput) |
| void | initParameters (URANIE::DataServer::TDataServer *tdsPar, void(*fcn)(Double_t *, Double_t *), const char *varexpinput, const char *varexpoutput) |
| void | initParameters (URANIE::DataServer::TDataServer *tdsPar, URANIE::Launcher::TCode *Code) |
| Int_t | eval (Double_t *theta, Double_t *res, int=0) |
| Official method inherited from TSimpleEval, it is the main method of a DF It calls three methods in a row : runConfiguration, getData and localeval. More... | |
| void | runConfiguration (double *theta) |
| Runs the code provided on the reference input to get estimations. More... | |
| vector< vector< double > > | getObservationVector () |
| Return the observation vector of vector. More... | |
| TMatrixD | getObservationMatrix () |
| Return the observation matrix. More... | |
| void | setSaveAllEvaluations (bool value) |
| Choose whether every evaluations should be kept (might slown down the process) More... | |
| void | changeLauncher (TString tlcName) |
| Change the code launcher. More... | |
| void | changeCodeLauncherOpt (TString opt) |
| Change the option of the code launcher. More... | |
| void | dumpAllDataservers () |
| void | keepParametersValue () |
| void | dumpDetails () |
| void | addCodeLauncherOpt (TString opt) |
| add options to the already of the code launcher More... | |
| void | setUseMatrix (bool value) |
| Choose whether vector of vector or matrix should be used in the distance function localeval method. More... | |
| void | setVarWeights (int nwei, double *wei) |
| Set a weight to ponderate variable when _nVar >1. More... | |
| void | setVarWeights (vector< double > wei) |
| Set a weight to ponderate variable when _nVar >1. More... | |
| void | setObservationCovarianceMatrix (TMatrixD &mat) |
| set the observatiton covariance matrix More... | |
| bool | getSaveAllEvaluation () |
| Check the value of the saveAll option. More... | |
| bool | getUseMatrix () |
| Check the value of the useMatrix option. More... | |
| void | setGaussianRandomNoise (const char *stdname) |
| Set Normal random noise for an output variable. More... | |
| void | setSeed (UInt_t nval) |
| Set the seed of the random generator if one is used. More... | |
| void | setLog () |
| void | unsetLog () |
| void | changeLog () |
| Bool_t | getLog () |
| virtual void | printLog (Option_t *option="") |
Additional Inherited Members | |
Public Attributes inherited from URANIE::Calibration::TDistanceFunction | |
| URANIE::DataServer::TDataServer * | _tdsEval |
| pointer toward the evaluation dataserver More... | |
| URANIE::DataServer::TDataServer * | _tdsObs |
| pointer toward the reference dataserver More... | |
| URANIE::DataServer::TDSNtupleD * | _allData |
| pointer toward the reference dataserver More... | |
Protected Member Functions inherited from URANIE::Calibration::TDistanceFunction | |
| void | getData (bool reference=false) |
| Get the data either the reference one, or the estimated one for a given parameter configuration. More... | |
Protected Attributes inherited from URANIE::Calibration::TDistanceFunction | |
| vector< string > | _vrefName |
| Vector of reference name. More... | |
| vector< string > | _voutName |
| Vector of output name. More... | |
| vector< string > | _vparName |
| Vector of parameters name. More... | |
| vector< vector< double > > | _yObs |
| Vector of observations outputs (size: _nVar < _nObs >) More... | |
| vector< vector< double > > | _yExp |
| Vector of tested values (size: _nVar <_nObs>) More... | |
| TMatrixD | _mObsCovMat |
| Observation Covariance matrix. More... | |
| TMatrixD | _myObs |
| Vector of observations outputs (size: _nVar < _nObs >) More... | |
| TMatrixD | _myExp |
| Vector of tested values (size: _nVar <_nObs>) More... | |
| unsigned int | _nObs |
| Number of observations. More... | |
| unsigned int | _nVar |
| Number of variables;. More... | |
| unsigned int | _nPar |
| Number of Parameters;. More... | |
| vector< double > | _vParValues |
| vector< double > | _varWeights |
| Vector of variable weights (size: _nVar) More... | |
| vector< vector< double > > | _obsWeights |
| Vector of observation weights outputs (size: _nObs) More... | |
| URANIE::Relauncher::TRun * | _run |
| TString | _tlcType |
| TString | _codeLauncherOpt |
| Option for code launcher. More... | |
| URANIE::Launcher::TCode * | _code |
| TString | _funcName |
| void(* | _pFunction )(double *, double *) |
| Function pointer. More... | |
| TString | _varexpinput |
| TString | _varexpoutput |
| bool | _baprioriSet |
| Whether apriori is set to evaluator. More... | |
| bool | _bsaveAll |
| Whether all evaluations should be saved, not only a priori and a posteriori. More... | |
| bool | _buseMatrix |
| Use matrix instead of vectors. More... | |
| bool | _blog |
| Boolean to decide if the log information is shown or not. More... | |
| bool | _dumpAllTds |
| dump all tested dataserver; More... | |
| bool | _keepParValue |
| Keep the parameters values in runner case. More... | |
| bool | _bdumpDetails |
| Dump the details in Distance Computation. More... | |
| int | _icalc |
| Calcul iterator;. More... | |
| unsigned int | _ivar |
| unsigned int | _iobs |
| TList * | _listOfParameters |
| list of parameters More... | |
| TRandom3 * | _rand |
| The random generator. More... | |
| int | _nSeed |
| The seed of the random generator. More... | |
| TMatrixD | _mSigma |
| Vector of variance of errors. More... | |
| bool | _boolNoise |
| Whether noise is add to the output. More... | |
Detailed Description
Description of the class TWeightedLSDistanceFunction
The distance is estimated as
\[ Dist = \sum_{i=1}^{n_{Var}} \alpha_i \times \sqrt{ \sum_{j=1}^{n_{Obs}} \beta_{j} (\mathbf{y^{j}_{i,Obs}} - \mathbf{y^{j}_{i,Est}})^{2}} \]
where.
- \(n_{Var}\) and \(n_{Obs}\) are respectively the number of output variables and the number of events in the reference dataset
- \(\mathbf{y^{j}_{i,Obs}}\) and \(\mathbf{y^{j}_{i,Est}}\) are respectively the reference and estimated value of output \( i \) for event \( j \)
- \( \alpha_i \) is a weight that might be used to ponderate one variable with respect to the others
- \( \beta_j \) is a weight that might be used to ponderate one event with respect to the others (uncertainty for instance)
Constructor & Destructor Documentation
◆ TWeightedLSDistanceFunction()
| URANIE::Calibration::TWeightedLSDistanceFunction::TWeightedLSDistanceFunction | ( | URANIE::DataServer::TDataServer * | tdsEval, |
| URANIE::DataServer::TDataServer * | tdsObs, | ||
| const char * | reference, | ||
| const char * | output, | ||
| const char * | weight = "" |
||
| ) |
Default constructor.
- the evaluation dataserver
- the reference dataserver
- the list of variable that are the output reference (_nVar in total)
- the outputs of the code (_nVar as well)
- the observation weight (uncertainty for instance)
◆ ~TWeightedLSDistanceFunction()
|
virtual |
Default destructor.
Member Function Documentation
◆ localeval()
|
virtual |
Evaluate the distance function
Implements URANIE::Calibration::TDistanceFunction.

Public Member Functions inherited from