Documentation / Developer's manual
Available modules
Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,  ![]() |
Uranie / DataServer
v4.10.0
|
TDataServer.h
Go to the documentation of this file.
164 Bool_t fileDataRead(const char* name, Bool_t bSave = kTRUE, Bool_t bDontAddAttribute = kFALSE, Option_t *option="");
167 Bool_t fileDataReadCSV(const char* name, string delimiter = ",", Bool_t bSave = kTRUE, Bool_t bDontAddAttribute = kFALSE, Option_t *option="");
188 TDataSpecification and TDSNtupleD are rebuilt completly deleting all possible previous information
310 static string checkAttributes(TDataServer *tds, string varexp, map<string, vector<int> > &mAttributeElements);
354 void addAttribute(TString name, TString formula, TString title = "",TString unit = "", bool update=true);
466 The cut is tested and if it differs from the previous one (currently used) the quantiles and statistical caracteristic
481 The cut is tested and if it differs from the previous one (currently used) the quantiles and statistical caracteristic
531 (*_fLogger) << " Selection is changing ==> clearing the TAttribute computed statistics and quantiles" << Endl;
574 void computeStatistic(const char *varexp = "*", const char *selection = "", Option_t *option = "");
586 TMatrixD computeCorrelationMatrix(const char *varexp = "*", const char *selection = "", Option_t *option = "");
835 void draw(const char* varexp, const char* selection = "", Option_t* option = "", bool internalCall=kFALSE);
933 This graph is as \b TParallelCoordonate in ROOT but is called \b cobweb in the uncertainty community (book of Saltelli).
1078 return ((_biteratorNameChanged) ? _siteratorChangedName.Data() : Form("%s__n__iter__", GetName()) );
Double_t computeInverseNormalCDF(Double_t p, Double_t mean=0.0, Double_t stddev=1.0)
Computes the inverse of the cumulative of a normal distribution.
void fillConstantAttribute(TString name, UEntry *ConstUEntry)
Fills a new Branch for an attribute by copying a constant uentry.
Int_t getNOutputAttributes()
Return the number of output Attributes.
void drawQQPlot(const char *varexp, const char *laws, int nq, Option_t *option="")
virtual void printLog(Option_t *option="")
void setCut(const char *str)
Specifies the criterion to exclude individuals.
Definition: TDataServer.h:485
void checkCanvasCreation(Option_t *option="")
Crate a canvas if needed.
void drawCDF(const char *varexp, const char *selection="", Option_t *option="")
CDF d'une variable.
Definition: TDataServer.h:92
TMatrixD getMatrix(const char *varexp="*", const char *selection="", Option_t *option="")
Returns the matrix of data.
Definition: TDataServer.h:100
TCut _ccut
Selection of pattern.
Definition: TDataServer.h:1306
TDSNtupleD * GetTuple(Option_t *option="V")
Returns a pointer to the TDSNtupleD.
Definition: TDataServer.h:1136
Bool_t _bQuantVectPrinted
print the message for the vector quantile calculation only once
Definition: TDataServer.h:1299
void setCut(TString str)
Specifies the criterion to exclude individuals.
Definition: TDataServer.h:500
void fillAttribute(TString name, TString formula="", Bool_t update=kTRUE)
Fills a new Branch for an attribute by applying the given formula.
void addAttributeUsingData(TString name, double *arr, int size)
Adds an attribute with the name and the content.
void bootstrap(Int_t nsize=-1, Option_t *option="")
Define a bootstrap database.
void drawTufte(const char *varexp, const char *selection="", Option_t *option="")
Draw 2D scatterplots "tufte".
TDSNtupleD * getTuple(Option_t *option="V")
Returns a pointer to the TDSNtupleD.
void computeQuantile(const char *attName, Double_t proba, Double_t &quantile, Int_t type=7)
Compute a quantile of the empirical distribution of an attribute.
const char * getIteratorName()
Returns the name of the iterator.
Definition: TDataServer.h:1076
void saveTuple(Option_t *option)
Save the ntupleD in the archive (ROOT File)
void internalQuantilesComputation(Int_t nData, Int_t nProba, Double_t *data, Double_t *quantiles, Double_t *proba, Bool_t isSorted=kTRUE, Int_t *index=0, Int_t type=7)
Computes the value of quantile alpha.
void exportDataCSV(const char *filename, const char *varexp="*", const char *select="", string delimiter=",", Option_t *option="")
Exports the data in a CSV file.
Bool_t _biteratorNameChanged
To know whether this iterator name has been changed.
Definition: TDataServer.h:1300
void clearSelect()
Clears the selection of patterns.
Definition: TDataServer.h:510
TCanvas * _canvas
The canvas to work on;.
Definition: TDataServer.h:1296
void startViewer()
Definition: TDataServer.h:100
static TString getUranieVersion()
Definition: TDataServer.h:1269
Bool_t hasTuple()
Check if the data server contains data.
Definition: TDataServer.h:1236
void addAttribute(TString name, Double_t dmin, Double_t dmax)
Adds an attribute with the name and the range.
Definition: TDataServer.h:92
Definition: TDataServer.h:100
TString _sdatafile
The original data file (ASCII mode)
Definition: TDataServer.h:1302
EOrigin _norigin
The origin of the dataserver (ASCII File, TTree, SQL...)
Definition: TDataServer.h:1317
void fillOthersAttributes(bool update=kFALSE)
fill TFormula attributes
TCut getCut()
Return the selection TCut.
Definition: TDataServer.h:1121
TString _shortDataTreeName
The shortened name of the TDataServer;.
Definition: TDataServer.h:1304
string getStringListOfAttributes(bool onlyNumerical=true, bool onlyAttribute=true)
Gets the list of attributes as a string.
Definition: TDataServer.h:100
Definition: TDataServer.h:100
TPatternsEventList * _pelBootstrap
The bootstrap list of input pattern.
Definition: TDataServer.h:1319
void createTuple(Option_t *option="")
Creates the tuple of the TDataServer.
void drawPairs(const char *varexp="*", const char *selection="", Option_t *option="")
draw the scatterplots for each possible pairs
Definition: TDataServer.h:92
Definition: TDataServer.h:100
Definition: TDataServer.h:96
Int_t getNInputAttributes()
Return the number of input Attributes.
EOrigin
define the origin of the TDS (how it has been constructed)
Definition: TDataServer.h:90
void drawCDFRaFu(const char *varexp, const char *selection="", Option_t *option="")
Draw a CDF of a TPossibility attribute (RaFu)
ECAHMethod
define the method ued to compute CAH
Definition: TDataServer.h:98
void deleteTuple()
Delete the TDSNtupleD of _datatree variable.
Int_t Scan(const char *varexp, const char *selection="", Option_t *option="")
Scan content of the TDS.
Definition: TDataServer.h:815
EOrigin getOrigin()
Return the origin of the considered TDS.
Definition: TDataServer.h:1095
Definition: TDataServer.h:96
Int_t getNPatterns()
Returns the number of patterns in the TDataServer.
Double_t getValue(TString attName, Int_t entry, Int_t ielement=-1)
Returns the value at index "entry" of the leaf "attName".
string getString(TString attName, Int_t entry)
Returns a string for entry "entry" of the leaf "attName".
Definition: TDataServer.h:96
char * getDataFileName()
Returns the name of the file.
void exportData(const char *filename, const char *varexp="*", const char *select="", Option_t *option="")
Exports the data in a ASCII file.
int getAttributeIndex(TAttribute *att, bool onlyAttribute=false) const
Returns the index of the attribute.
void Draw(const char *varexp, const char *selection="", Option_t *option="")
Draws histogram for a given index of a variable.
Definition: TDataServer.h:840
Definition: TDataServer.h:96
void addAttributeByNameTitle(TString name, TString title)
Adds an attribute with the name and title.
void clearCut()
Clears the rejection of patterns.
Definition: TDataServer.h:519
Bool_t fileDataRead(const char *name, Bool_t bSave=kTRUE, Bool_t bDontAddAttribute=kFALSE, Option_t *option="")
Reads a ASCII file with a header.
ClassDef(URANIE::DataServer::TDataServer, ID_DATASERVER) private TDSNtupleD * _datatree
< Specification of data
Definition: TDataServer.h:1291
void draw(const char *varexp, const char *selection="", Option_t *option="", bool internalCall=kFALSE)
Draws histogram for a given index of a variable.
The collection of attributes specifying how to interpret the input data attributes.
Definition: TDataSpecification.h:63
Interface of the class URANIE::DataServer::TPatternsEventList.
void drawECDF(const char *varexp, const char *selection="", Option_t *option="")
Experimental CDF of a single variable.
void exportDataHeader(const char *filename, const char *varexp="*", const char *select="", Option_t *option="")
Exports the data in a header file ( C / C++)
Int_t getNAttributes(bool onlyAttribute=true)
Returns the number of attributes in the TDataServer.
Bool_t fileDataReadCSV(const char *name, string delimiter=",", Bool_t bSave=kTRUE, Bool_t bDontAddAttribute=kFALSE, Option_t *option="")
TString _siteratorChangedName
The shortened name of the TDataServer;.
Definition: TDataServer.h:1305
Definition: TDataServer.h:92
void drawHistogram(const char *sVar, const char *selection="", Option_t *option="")
Histogram of a variable.
Int_t computeIndexQuantileWilks(Double_t alpha, Double_t beta, Int_t n)
Computes the index of the quantile alpha with a confidence beta (Wilks method)
char * getDataTreeName()
Returns the name of the tree.
ENormalisation
define the kind of normalisation to be chosen in normalize method
Definition: TDataServer.h:94
Description of the class TPatternsEventList.
Definition: TPatternsEventList.h:62
char * getArchiveFileName()
Returns the name of the archive file.
static string checkAttributes(TDataServer *tds, string varexp, map< string, vector< int > > &mAttributeElements)
check the attribute content
void setTuple(TDSNtupleD *ntd, bool newismain=true, const char *att="*")
Set the TDSNtupleD of _datatree variable.
Definition: TDataServer.h:966
TDataSpecification * getDataSpecification()
Return a TDataSpecification pointer.
Definition: TDataServer.h:1127
void drawLegend(const char *varexp, const char *selection="", const char *histname="htemp")
TAttribute * getAttribute(TString str)
Returns a pointer of the attribute given by this name.
Class of attributes following a probability density function.
void drawProfile(const char *varexp, const char *selection="", Option_t *option="")
Draws Profile.
void cleanStatAndQuantiles()
Utility function to clean the quantiles and stat of all attribute if needed.
Definition: TDataServer.h:528
Bool_t isAttribute(TString name) const
Checks if the attribute given by a name exist.
TObjArray * _drawingGarbageCollector
Garbage collector list for drawing.
Definition: TDataServer.h:104
void drawIter(const char *sVar, const char *selection="", Option_t *option="")
Graph of a variable depanding of his apparition order in the list.
void drawCobWeb(const char *varexp, const char *selection="", Option_t *option="")
Draw a cobweb.
void computeQuantileCV(TString yname, Double_t alpha, TString zname, Double_t zapha, Double_t &quantile, Double_t &rho)
Compute the quantile alpha by comtrol variate.
void setCut(TCut cut)
Specifies the criterion to exclude individuals.
Definition: TDataServer.h:470
void estimateQuantile(const char *attName, Int_t nProba, Double_t *proba, Double_t *quantile, Double_t confidence=0.5, Option_t *option="")
Estimates quantiles of attribute "attName" with confidence level (Wilks method)
void drawQQorPPPlot(const char *varexp, const char *laws, int nq, Option_t *option)
Internal method, not to be used standalonely.
void exportDataContext(const char *filename, const char *varexp="*", const char *select="")
Export data in a tex file with a ConTex format.
Interface of the class URANIE::DataServer::TDataSpecification.
TMatrixD computeCorrelationMatrix(const char *varexp="*", const char *selection="", Option_t *option="")
Computes the correlation matrix.
Bool_t ntupleDataRead(const char *file, const char *tree, const char *svar="*", const char *cut="")
Reads data from a TDSNtupleD in a ROOT file.
void setTuple(TTree *ntd, bool newismain=true)
Set the TDSNtupleD of _datatree variable.
Definition: TDataServer.h:975
void computeRank(const char *varexp="*", Option_t *option="")
Computes the rank.
void drawCopulogram(const char *varexp="*", const char *selection="", Option_t *option="")
draw the scatterplots for each possible pairs and ranks
void exportDataNeMo(const char *filename, const char *varexpinput, const char *varexpoutput, const char *select="")
Exports the data in a ASCII file reading by NeMo.
void delAttribute(TString name)
Deletes an attribute given by these name.
TMatrixD computeCAH(const char *varexp="*", ECAHMethod CAHmethod=kWard, const char *selection="", Option_t *option="")
make a CAH
void normalize(const char *varexp="", const char *suffix="_CR", ENormalisation method=kCR, bool global=true)
Normalize attributes by several methods of normalisation (CenterReduct, on the intervals or ) ...
URANIE::DataServer::UMessageLogger * _fLogger
Message logger.
Definition: TDataServer.h:1321
TString _sarchivefile
The archive file (.root)
Definition: TDataServer.h:1303
TTree * _friend
Tree added by friend method.
Definition: TDataServer.h:1297
Definition: TDSNtupleD.h:35
vector< double > getVector(TString attName, Int_t entry)
Returns a vector of double for entry "entry" of the leaf "attName".
void clearVectors()
void merge(TDataServer *tds, const char *varexpinput="*", bool bwithFriend=kFALSE)
Concatenates the variables of two dataservers.
void computeStatistic(const char *varexp="*", const char *selection="", Option_t *option="")
Computes the statistics features (minimum and maximum values, mean and standard-deviation) ...
TList * getListOfAttributes(const char *sListOfAttributes="*", bool onlyAttribute=true)
Gets the list of attributes from a string.
void setSelect(TString str)
Specifies the criterion by a string to select individuals.
Definition: TDataServer.h:456
Interface file for the class URANIE::DataServer::TAttribute.
Int_t scan(const char *varexp="", const char *selection="", Option_t *option="")
Scan content of the TDS.
void drawBoxPlot(const char *varexp, const char *selection="", Option_t *option="")
void drawPPPlot(const char *varexp, const char *laws, int nq, Option_t *option="")
void drawScatterplot(const char *varexp, const char *selection="", Option_t *option="")
Draws Scatterplots.
void keepFinalTuple(bool val)
Definition: TDataServer.h:1241
Definition: TDataServer.h:96
static void findParametersLaw(TString soption, vector< double > &vec, bool blog)
void changeIteratorName(const char *name)
Definition: TDataServer.h:1081