12 #ifndef ROOT_TPrincipal
13 #define ROOT_TPrincipal
Principal Components Analysis (PCA)
virtual void Browse(TBrowser *b)
Browse the TPrincipal object in the TBrowser.
const TVectorD * GetEigenValues() const
virtual ~TPrincipal()
destructor
void MakeRealCode(const char *filename, const char *prefix, Option_t *option="")
PRIVATE METHOD: This is the method that actually generates the code for the transformations to and fr...
const TVectorD * GetMeanValues() const
virtual void P2X(const Double_t *p, Double_t *x, Int_t nTest)
Calculate x as a function of nTest of the most significant principal components p, and return it in x.
virtual void Print(Option_t *opt="MSE") const
Print the statistics Options are M Print mean values of original data S Print sigma values of origina...
const TVectorD * GetUserData() const
static const char * filename()
virtual void SumOfSquareResiduals(const Double_t *x, Double_t *s)
PRIVATE METHOD: Begin_html.
void MakeNormalised()
PRIVATE METHOD: Normalize the covariance matrix.
void Test(Option_t *option="")
Test the PCA, bye calculating the sum square of residuals (see method SumOfSquareResiduals), and display the histogram.
const TMatrixD * GetEigenVectors() const
#define ClassDef(name, id)
The TNamed class is the base class for all named ROOT classes.
virtual void MakeMethods(const char *classname="PCA", Option_t *option="")
Generate the file PCA.cxx which contains the implementation of two methods: ...
TList * GetHistograms() const
virtual void MakeHistograms(const char *name="pca", Option_t *option="epsdx")
Make histograms of the result of the analysis.
virtual void X2P(const Double_t *x, Double_t *p)
Calculate the principal components from the original data vector x, and return it in p...
const TMatrixD * GetCovarianceMatrix() const
Using a TBrowser one can browse all ROOT objects.
virtual void AddRow(const Double_t *x)
Begin_Html.
virtual void MakePrincipals()
Perform the principal components analysis.
Int_t fNumberOfDataPoints
virtual void Clear(Option_t *option="")
Clear the data in Object.
const Double_t * GetRow(Int_t row)
Return a row of the user supplied data.
TPrincipal & operator=(const TPrincipal &)
assignement operator
Bool_t IsFolder() const
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects)...
virtual void MakeCode(const char *filename="pca", Option_t *option="")
Generates the file , with .C appended if it does argument doesn't end in ...
const TVectorD * GetSigmas() const
TMatrixD fCovarianceMatrix
TPrincipal()
Empty CTOR, Do not use.