Documentation / Developer's manual
Available modules
Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,  
Uranie / Calibration v4.9.0
|
TDistanceFunction.h
Go to the documentation of this file.
149 TDistanceFunction(URANIE::DataServer::TDataServer *tdsEval, URANIE::DataServer::TDataServer *tdsObs, const char *reference, const char *output, const char *weight="");
164 void initParameters(URANIE::DataServer::TDataServer *tdsPar, const char* funcName, const char *varexpinput, const char *varexpoutput);
165 void initParameters(URANIE::DataServer::TDataServer *tdsPar, void (*fcn)(Double_t*,Double_t*), const char *varexpinput, const char *varexpoutput);
Description of the class TDistanceFunction.
Definition TDistanceFunction.h:68
void(* _pFunction)(double *, double *)
Function pointer.
Definition TDistanceFunction.h:103
void setObservationCovarianceMatrix(TMatrixD &mat)
set the observatiton covariance matrix
bool _buseMatrix
Use matrix instead of vectors.
Definition TDistanceFunction.h:110
void setSaveAllEvaluations(bool value)
Choose whether every evaluations should be kept (might slown down the process)
Definition TDistanceFunction.h:221
bool _boolNoise
Whether noise is add to the output.
Definition TDistanceFunction.h:127
vector< vector< double > > getObservationVector()
Return the observation vector of vector.
Definition TDistanceFunction.h:191
void initParameters(URANIE::DataServer::TDataServer *tdsPar, URANIE::Launcher::TCode *Code)
virtual Int_t localeval(Double_t *res)=0
Use the reference and the newly obtained estimations to compute a distance.
void fillInOutAtt(URANIE::DataServer::TDataServer *tdsPar)
Internal initialisation method.
unsigned int _nObs
Number of observations.
Definition TDistanceFunction.h:89
void setVarWeights(vector< double > wei)
Set a weight to ponderate variable when _nVar >1.
vector< vector< double > > _obsWeights
Vector of observation weights outputs (size: _nObs)
Definition TDistanceFunction.h:96
bool _dumpAllTds
dump all tested dataserver;
Definition TDistanceFunction.h:112
TMatrixD getObservationMatrix()
Return the observation matrix.
Definition TDistanceFunction.h:206
void changeLauncher(TString tlcName)
Change the code launcher.
void dumpAllDataservers()
Definition TDistanceFunction.h:234
vector< double > _varWeights
Vector of variable weights (size: _nVar)
Definition TDistanceFunction.h:95
void initParameters(URANIE::DataServer::TDataServer *tdsPar, void(*fcn)(Double_t *, Double_t *), const char *varexpinput, const char *varexpoutput)
TList * _listOfParameters
list of parameters
Definition TDistanceFunction.h:121
TDistanceFunction(URANIE::DataServer::TDataServer *tdsEval, URANIE::DataServer::TDataServer *tdsObs, const char *reference, const char *output, const char *weight="")
Standard constructor.
URANIE::Relauncher::TRun * _run
Definition TDistanceFunction.h:98
void initParameters(URANIE::DataServer::TDataServer *tdsPar, URANIE::Relauncher::TRun *run)
vector< string > _vrefName
Vector of reference name.
Definition TDistanceFunction.h:79
unsigned int _nVar
Number of variables;.
Definition TDistanceFunction.h:90
void setGaussianRandomNoise(const char *stdname)
Set Normal random noise for an output variable.
TRandom3 * _rand
The random generator.
Definition TDistanceFunction.h:124
URANIE::DataServer::TDataServer * _tdsObs
pointer toward the reference dataserver
Definition TDistanceFunction.h:74
void getData(bool reference=false)
Get the data either the reference one, or the estimated one for a given parameter configuration.
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...
vector< string > _vparName
Vector of parameters name.
Definition TDistanceFunction.h:81
void dumpDetails()
Definition TDistanceFunction.h:242
bool _bsaveAll
Whether all evaluations should be saved, not only a priori and a posteriori.
Definition TDistanceFunction.h:109
TString _codeLauncherOpt
Option for code launcher.
Definition TDistanceFunction.h:100
bool _blog
Boolean to decide if the log information is shown or not.
Definition TDistanceFunction.h:111
TString _varexpinput
Definition TDistanceFunction.h:104
URANIE::DataServer::TDataServer * _tdsEval
pointer toward the evaluation dataserver
Definition TDistanceFunction.h:73
TMatrixD _myObs
Vector of observations outputs (size: _nVar < _nObs >)
Definition TDistanceFunction.h:87
void setSeed(UInt_t nval)
Set the seed of the random generator if one is used.
Definition TDistanceFunction.h:280
TString _varexpoutput
Definition TDistanceFunction.h:105
bool _keepParValue
Keep the parameters values in runner case.
Definition TDistanceFunction.h:113
void addCodeLauncherOpt(TString opt)
add options to the already of the code launcher
Definition TDistanceFunction.h:247
bool getUseMatrix()
Check the value of the useMatrix option.
Definition TDistanceFunction.h:272
int _nSeed
The seed of the random generator.
Definition TDistanceFunction.h:125
TString _funcName
Definition TDistanceFunction.h:102
URANIE::Launcher::TCode * _code
Definition TDistanceFunction.h:101
void setUseMatrix(bool value)
Choose whether vector of vector or matrix should be used in the distance function localeval method.
Definition TDistanceFunction.h:252
bool _baprioriSet
Whether apriori is set to evaluator.
Definition TDistanceFunction.h:108
bool getSaveAllEvaluation()
Check the value of the saveAll option.
Definition TDistanceFunction.h:267
void runConfiguration(double *theta)
Runs the code provided on the reference input to get estimations.
vector< double > _vParValues
Definition TDistanceFunction.h:92
URANIE::DataServer::TDSNtupleD * _allData
pointer toward the reference dataserver
Definition TDistanceFunction.h:75
void initParameters(URANIE::DataServer::TDataServer *tdsPar, const char *funcName, const char *varexpinput, const char *varexpoutput)
TMatrixD _mSigma
Vector of variance of errors.
Definition TDistanceFunction.h:126
int _icalc
Calcul iterator;.
Definition TDistanceFunction.h:117
vector< vector< double > > _yObs
Vector of observations outputs (size: _nVar < _nObs >)
Definition TDistanceFunction.h:84
virtual ~TDistanceFunction()
Default destructor.
TMatrixD _myExp
Vector of tested values (size: _nVar <_nObs>)
Definition TDistanceFunction.h:88
bool _bdumpDetails
Dump the details in Distance Computation.
Definition TDistanceFunction.h:114
void keepParametersValue()
Definition TDistanceFunction.h:238
vector< string > _voutName
Vector of output name.
Definition TDistanceFunction.h:80
vector< vector< double > > _yExp
Vector of tested values (size: _nVar <_nObs>)
Definition TDistanceFunction.h:85
void setVarWeights(int nwei, double *wei)
Set a weight to ponderate variable when _nVar >1.
void changeCodeLauncherOpt(TString opt)
Change the option of the code launcher.
Definition TDistanceFunction.h:230
virtual void printLog(Option_t *option="")
unsigned int _nPar
Number of Parameters;.
Definition TDistanceFunction.h:91
TMatrixD _mObsCovMat
Observation Covariance matrix.
Definition TDistanceFunction.h:86
Definition TABC.cxx:46