Documentation / Manuel développeur
Modules disponibles
Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,  ![]() |
Uranie / Sampler
v4.10.0
|
Interface with the simplex class developped by B. Secher (LGLS). More...
#include <TSamplingMixture.h>


Public Types | |
| enum | EType { kSummit = 10, kCenterEdge, kThirdEdge, kCenterFace, kCenterSegment, kCentroide } |
Public Member Functions | |
Constructor and Destructor | |
| TSamplingMixture (URANIE::DataServer::TDataServer *tds, Int_t ns, Double_t dThreshold=1.0, Option_t *option="") | |
| Constructor from a TDataServer, the name of the method and the size of the sample. More... | |
| virtual | ~TSamplingMixture () |
| Default destructor. More... | |
| void | init () |
| The init method. More... | |
Setting and Getting global informations | |
| const char * | getNameInternalAttributeCandidatesPoints () |
| Return the name of the internal attribute to known if point is a candidates point ( equal to 0) or not ( greater or equal to 1) More... | |
| const char * | getNameInternalAttributeTypePoints () |
| Return the name of the internal attribute to known the type of points. More... | |
| Int_t | getNGeneratedSample () |
| Return the number of call of the generateSample method. More... | |
| void | setTrace (TString straceFile="") |
| Activate the trace of the process. More... | |
| void | unsetTrace () |
| Unset trace. More... | |
| Bool_t | getTrace () |
| Return the trace flag. More... | |
| TString | getTraceFile () |
| Return the name of the trace file. More... | |
| void | setSummits () |
| Set the Flag of summits. More... | |
| void | unsetSummits () |
| Unset the Flag of summits. More... | |
| void | setCenterEdges () |
| Set the Flag of CenterEdges. More... | |
| void | unsetCenterEdges () |
| Unset the Flag of CenterEdges. More... | |
| void | setThirdEdges () |
| Set the Flag of ThirdEdges. More... | |
| void | unsetThirdEdges () |
| Unset the Flag of ThirdEdges. More... | |
| void | setCenterFaces () |
| Set the Flag of CenterFaces. More... | |
| void | unsetCenterFaces () |
| Unset the Flag of CenterFaces. More... | |
| void | setCentroide () |
| Set the Flag of Centroide. More... | |
| void | unsetCentroide () |
| Unset the Flag of Centroide. More... | |
| void | setCenterSegments () |
| Set the Flag of CenterSegments. More... | |
| void | unsetCenterSegments () |
| Unset the Flag of CenterSegments. More... | |
| void | setSaveCandidates () |
| Set the Flag of save candidates. More... | |
| void | unsetSaveCandidates () |
| Unset the Flag of CenterSegments. More... | |
| Bool_t | isSaveCandidates () |
| Return isSaveCandidates. More... | |
Treat relational constraints | |
| void | addConstraint (TVectorD vecConstraint) |
| Add the constraint defined in a vector. More... | |
Generation of the sample | |
| virtual void | generateSample (Option_t *option="MD") |
| Generates the sample. More... | |
| void | generateCandidates (Option_t *option) |
| Generates the list of candidates. More... | |
Printing Log | |
| virtual void | printLog (Option_t *option="") |
| Prints the log. More... | |
Public Member Functions inherited from URANIE::Sampler::TSamplerDeterminist | |
| TSamplerDeterminist (URANIE::DataServer::TDataServer *tds, Option_t *option, Int_t ns) | |
| Constructor with a dataserver. More... | |
| virtual | ~TSamplerDeterminist () |
| Default destructor. More... | |
Public Member Functions inherited from URANIE::Sampler::TSampler | |
| TSampler (URANIE::DataServer::TDataServer *tds, Option_t *option, Int_t nCalcul) | |
| Constructor with a TDataServer, the options and the size of the sample. More... | |
| virtual | ~TSampler () |
| Default destructor. More... | |
| Int_t | GetID () |
| Returns the ID of the class. More... | |
| void | setMethodName (TString str) |
| Sets the method name in a global variable. More... | |
| TString | getMethodName () |
| Gets the method name. More... | |
| virtual URANIE::DataServer::TDataServer * | getTDS () |
| Return the TDS filling by the sampling algorithm. More... | |
| void | parseOption (Option_t *option) |
| Parse the option. More... | |
| virtual void | createListOfAttributes () |
| Creates the List of attributes to simulate. More... | |
| virtual void | createTuple () |
| Creates the TDSNtupleD of data with only the TStochasticAttributes. More... | |
| URANIE::DataServer::TDSNtupleD * | getTuple () |
| Returns the TDSNtupleD of data. More... | |
| virtual void | fillOtherAttributes () |
| Fills the TDSNtupleD of data with other TFormulaAttributes. More... | |
| void | setLog () |
| void | unsetLog () |
| void | changeLog () |
| Bool_t | getLog () |
Private Types | |
| enum | ERelation { kLower, kUpper } |
Private Member Functions | |
| Fill the list of points in the TDS with a type void | fillListOfCandidatesPoints (list< vector< double > > lst, EType typePoint) |
| Set The List of Candidates Points void | setListOfCandidatesPoints () |
Private Attributes | |
| Double_t | _dThreshold |
| constraint: {x_{i} = dThreshold More... | |
| vector< vector< double > > | _planes |
| The matrix of contraintes. More... | |
| Simplex * | _simplex |
| Simplex Classe from B. Secher. More... | |
| Bool_t | _bSummits |
| Flag for the summits. More... | |
| Bool_t | _bCenterEdges |
| Flag for the CenterEdges. More... | |
| Bool_t | _bThirdEdges |
| Flag for the ThirdEdges. More... | |
| Bool_t | _bCenterFaces |
| Flag for the CenterFaces. More... | |
| Bool_t | _bCentroide |
| Flag for the Centroide. More... | |
| Bool_t | _bCenterSegments |
| Flag for the CenterSegments. More... | |
| Bool_t | _bSaveCandidates |
| Flag for saving candidates points. More... | |
| TString | _sAttNameTypeOfPoints |
| Name of the internal attribute for the type of points Etype (kSummit, kCenterEdge, ...) More... | |
| TString | _sAttNameCandidate |
| Name of the internal attribute for candidates points(1) else 0. More... | |
| Int_t | _nGenerateSample |
| The index of times that the generateSample method is call. More... | |
| Bool_t | _bTrace |
| The flag to known is trace is needed. More... | |
| TString | _sTraceFile |
| The name of the trace file. More... | |
Additional Inherited Members | |
Public Attributes inherited from URANIE::Sampler::TSampler | |
| Int_t | _nS |
| The size of the sample. More... | |
| Int_t | _nX |
| The size of attributes to sample. More... | |
| URANIE::DataServer::TDSNtupleD * | _ntsample |
| the tntuple of data More... | |
| TString | _sMethod |
| The title of the sampler method. More... | |
| Bool_t | _blog |
| Log Printing. More... | |
| Bool_t | _bupdateFile |
| Update the back up file when generating the attributeformula if there is some. More... | |
| URANIE::DataServer::TDataServer * | _tds |
| Pointer to a TDS. More... | |
| TList * | _lstOfAttributesToSample |
| The list of Stochastic Attributes to sample. More... | |
Detailed Description
Interface with the simplex class developped by B. Secher (LGLS).
The type of points are :Summit|CenterEdge|ThirdEdge|CenterFace|CenterSegment|Centroide
The _bCentroide attribute have two meanning in the two following method:
- in the generateCandidates method, add the Centroide point in the list of candidates points (normal)
- but, in the generateSample method, add the Centroide point in the sample even if the two algorithms ( MM or MMD) can not select this point. Then, in this case we have $nS+1$ points in the sample.
Member Enumeration Documentation
◆ ERelation
|
private |
◆ EType
Constructor & Destructor Documentation
◆ TSamplingMixture()
| URANIE::Sampler::TSamplingMixture::TSamplingMixture | ( | URANIE::DataServer::TDataServer * | tds, |
| Int_t | ns, | ||
| Double_t | dThreshold = 1.0, |
||
| Option_t * | option = "" |
||
| ) |
Constructor from a TDataServer, the name of the method and the size of the sample.
- Parameters
-
tds (TDataServer *) the TDS which contains attributes ns (Int_t) The size of the sampling to generate dThreshold (Double_t) the Threshold for the sum ( \( \sum{x_i} = dThreshold\)) option (Option_t *) The option to pass. - if option constains "save", the candidates points are stored in the TDS.
Referenced by ClassImp().
◆ ~TSamplingMixture()
|
virtual |
Default destructor.
Referenced by ClassImp().
Member Function Documentation
◆ addConstraint()
| void URANIE::Sampler::TSamplingMixture::addConstraint | ( | TVectorD | vecConstraint | ) |
Add the constraint defined in a vector.
The constraint defined by the equation
\[ 0 \leq \alpha_0 + \alpha_1 x_1 + \alpha_2 x_2 + \cdots + \alpha_n x_n \]
is stored in the vector as following \(vec[0] = \alpha_0\), \(vec[1] = \alpha_1\) and so on.
Referenced by ClassImp().
◆ fillListOfCandidatesPoints()
|
private |
Referenced by ClassImp().
◆ generateCandidates()
| void URANIE::Sampler::TSamplingMixture::generateCandidates | ( | Option_t * | option | ) |
Generates the list of candidates.
- Parameters
-
option (Option_t *) The option to pass.
Referenced by ClassImp().
◆ generateSample()
|
virtual |
Generates the sample.
Two alagorithms are implemented
- MD (for OptimalPointsFromMaximalDistance )
- MMD (for OptimalPointsFromMaximalMinDistance)
- Parameters
-
option (Option_t *) The option to pass (MD|MMD) (default MD).
Implements URANIE::Sampler::TSampler.
Referenced by ClassImp().
◆ getNameInternalAttributeCandidatesPoints()
|
inline |
Return the name of the internal attribute to known if point is a candidates point ( equal to 0) or not ( greater or equal to 1)
A filter to known if a point is a candidate point or not.
- If the candidates points are stored, then the design of experiment (the sampling) are points with this attribute is equal to 0. tds->getTuple()->Scan("*", Form("%s == %d", tmix->getNameInternalAttributeCandidatesPoints(), tmix->getNGeneratedSample()));
References _sAttNameCandidate.
◆ getNameInternalAttributeTypePoints()
|
inline |
Return the name of the internal attribute to known the type of points.
The type of points are EType : kSummit=10, kCenterEdge, kThirdEdge, kCenterFace, kCenterSegment, kCentroide
References _sAttNameTypeOfPoints.
◆ getNGeneratedSample()
|
inline |
Return the number of call of the generateSample method.
/return the number of call of the generateSample method
References _nGenerateSample.
◆ getTrace()
|
inline |
Return the trace flag.
References _bTrace.
◆ getTraceFile()
| TString URANIE::Sampler::TSamplingMixture::getTraceFile | ( | ) |
Return the name of the trace file.
Referenced by ClassImp().
◆ init()
| void URANIE::Sampler::TSamplingMixture::init | ( | ) |
The init method.
This method is called at the end of the constructor.
This method adds the two internal attributes:
- _sAttNameTypeOfPoints : to save the type of points from [Summit|CenterEdge|ThirdEdge|CenterFace|CenterSegment|Centroide];
- _sAttNameCandidate : (optionnal when save request) to known if point is a candidate point (equal to 1) or a solution (equal to 0)
And, this method creates the constraints from the lower and upper bounds for each attributes.
Referenced by ClassImp().
◆ isSaveCandidates()
|
inline |
Return isSaveCandidates.
References _bSaveCandidates.
◆ printLog()
|
virtual |
◆ setCenterEdges()
|
inline |
Set the Flag of CenterEdges.
References _bCenterEdges.
◆ setCenterFaces()
|
inline |
Set the Flag of CenterFaces.
References _bCenterFaces.
◆ setCenterSegments()
|
inline |
Set the Flag of CenterSegments.
References _bCenterSegments.
◆ setCentroide()
|
inline |
Set the Flag of Centroide.
References _bCentroide.
◆ setListOfCandidatesPoints()
|
private |
Referenced by ClassImp().
◆ setSaveCandidates()
|
inline |
Set the Flag of save candidates.
References _bSaveCandidates.
◆ setSummits()
|
inline |
Set the Flag of summits.
References _bSummits.
◆ setThirdEdges()
|
inline |
Set the Flag of ThirdEdges.
References _bThirdEdges.
◆ setTrace()
| void URANIE::Sampler::TSamplingMixture::setTrace | ( | TString | straceFile = "" | ) |
Activate the trace of the process.
the trace is used only in the generateCandidate method
/param straceFile (TString) The name of the trace file (empty by defautt, then use the default name which is "_tsmix_trace.log" )
Referenced by ClassImp().
◆ unsetCenterEdges()
|
inline |
Unset the Flag of CenterEdges.
References _bCenterEdges.
◆ unsetCenterFaces()
|
inline |
Unset the Flag of CenterFaces.
References _bCenterFaces.
◆ unsetCenterSegments()
|
inline |
Unset the Flag of CenterSegments.
References _bCenterSegments.
◆ unsetCentroide()
|
inline |
Unset the Flag of Centroide.
References _bCentroide.
◆ unsetSaveCandidates()
|
inline |
Unset the Flag of CenterSegments.
References _bSaveCandidates.
◆ unsetSummits()
|
inline |
Unset the Flag of summits.
References _bSummits.
◆ unsetThirdEdges()
|
inline |
Unset the Flag of ThirdEdges.
References _bThirdEdges.
◆ unsetTrace()
|
inline |
Unset trace.
References _bTrace.
Member Data Documentation
◆ _bCenterEdges
|
private |
Flag for the CenterEdges.
Referenced by ClassImp(), setCenterEdges(), and unsetCenterEdges().
◆ _bCenterFaces
|
private |
Flag for the CenterFaces.
Referenced by ClassImp(), setCenterFaces(), and unsetCenterFaces().
◆ _bCenterSegments
|
private |
Flag for the CenterSegments.
Referenced by ClassImp(), setCenterSegments(), and unsetCenterSegments().
◆ _bCentroide
|
private |
Flag for the Centroide.
Referenced by ClassImp(), setCentroide(), and unsetCentroide().
◆ _bSaveCandidates
|
private |
Flag for saving candidates points.
Referenced by ClassImp(), isSaveCandidates(), setSaveCandidates(), and unsetSaveCandidates().
◆ _bSummits
|
private |
Flag for the summits.
Referenced by ClassImp(), setSummits(), and unsetSummits().
◆ _bThirdEdges
|
private |
Flag for the ThirdEdges.
Referenced by ClassImp(), setThirdEdges(), and unsetThirdEdges().
◆ _bTrace
|
private |
The flag to known is trace is needed.
Referenced by ClassImp(), getTrace(), and unsetTrace().
◆ _dThreshold
|
private |
constraint: {x_{i} = dThreshold
Referenced by ClassImp().
◆ _nGenerateSample
|
private |
The index of times that the generateSample method is call.
Referenced by ClassImp(), and getNGeneratedSample().
◆ _planes
|
private |
The matrix of contraintes.
Referenced by ClassImp().
◆ _sAttNameCandidate
|
private |
Name of the internal attribute for candidates points(1) else 0.
Referenced by ClassImp(), and getNameInternalAttributeCandidatesPoints().
◆ _sAttNameTypeOfPoints
|
private |
Name of the internal attribute for the type of points Etype (kSummit, kCenterEdge, ...)
Referenced by ClassImp(), and getNameInternalAttributeTypePoints().
◆ _simplex
|
private |
Simplex Classe from B. Secher.
Referenced by ClassImp().
◆ _sTraceFile
|
private |
The name of the trace file.
Referenced by ClassImp().

Public Member Functions inherited from