HyperPlot
v1
Bin and visualise multidimensional datasets
|
HyperPlot, Author: Sam Harnew, sam.h , Date: Dec 2015 arne w@gma il.c om
A vector of HyperPoints
Definition at line 31 of file HyperPointSet.h.
#include <HyperPointSet.h>
Public Member Functions | |
const int & | getDimension () const |
bool | compatible (const HyperPoint &other, bool printError=true) const |
const HyperPoint & | at (int i) const |
HyperPoint & | at (int i) |
unsigned int | size () const |
void | push_back (const HyperPoint &point) |
void | addHyperPointSet (const HyperPointSet &other) |
void | removeDuplicates () |
void | sort () |
double | getSumW () const |
double | getSumW2 () const |
double | getCorrelation (int i, int j) const |
TMatrixD | getCorrelationMatrix () const |
double | getCovarience (int i, int j) const |
TMatrixD | getCovarienceMatrix () const |
HyperPoint | mean () const |
HyperPoint | geometricMean () const |
HyperPoint | harmonicMean () const |
void | save (TString path) |
void | load (TString path) |
void | print (std::ostream &os=std::cout) const |
HyperPointSet (int dimension) | |
HyperPointSet (const HyperPoint &point) | |
HyperPointSet (const HyperPoint &point1, const HyperPoint &point2) | |
HyperPointSet (const HyperPoint &point1, const HyperPoint &point2, const HyperPoint &point3) | |
HyperPointSet (int npoints, const HyperPoint &point) | |
HyperPointSet (TString path) | |
virtual | ~HyperPointSet () |
bool | linearlyIndependant () const |
HyperPointSet | gramSchmidtProcess () const |
void | normalise () |
Private Member Functions | |
void | save () |
Private Attributes | |
int | _dimension |
std::vector< HyperPoint > | _points |
HyperPointSet::HyperPointSet | ( | int | dimension | ) |
Standard constuctor where only the dimensionality is given
Definition at line 5 of file HyperPointSet.cpp.
HyperPointSet::HyperPointSet | ( | const HyperPoint & | point | ) |
Constuctor for a HyperPointSet that takes dimensionality from a given HyperPoint and adds that point to the HyperPointSet
Definition at line 34 of file HyperPointSet.cpp.
HyperPointSet::HyperPointSet | ( | const HyperPoint & | point1, |
const HyperPoint & | point2 | ||
) |
Constuctor for a HyperPointSet that takes dimensionality from a given HyperPoint and adds that point and another to the HyperPointSet
Definition at line 42 of file HyperPointSet.cpp.
HyperPointSet::HyperPointSet | ( | const HyperPoint & | point1, |
const HyperPoint & | point2, | ||
const HyperPoint & | point3 | ||
) |
Constuctor for a HyperPointSet that takes dimensionality from a given HyperPoint and adds that point and another 2 to the HyperPointSet
Definition at line 51 of file HyperPointSet.cpp.
HyperPointSet::HyperPointSet | ( | int | npoints, |
const HyperPoint & | point | ||
) |
Constuctor for a HyperPointSet that repeats the same point a total of npoints times.
Definition at line 23 of file HyperPointSet.cpp.
HyperPointSet::HyperPointSet | ( | TString | path | ) |
Constuctor for loading exisiting HyperPointSet from a file
Definition at line 13 of file HyperPointSet.cpp.
|
virtual |
Destructor
Definition at line 476 of file HyperPointSet.cpp.
void HyperPointSet::addHyperPointSet | ( | const HyperPointSet & | other | ) |
Add all the points from another HyperPointSet to this one.
Definition at line 201 of file HyperPointSet.cpp.
const HyperPoint & HyperPointSet::at | ( | int | i | ) | const |
Get a point from the HyperPointSet
Definition at line 71 of file HyperPointSet.cpp.
HyperPoint & HyperPointSet::at | ( | int | i | ) |
Get a point from the HyperPointSet
Definition at line 77 of file HyperPointSet.cpp.
bool HyperPointSet::compatible | ( | const HyperPoint & | other, |
bool | printError = true |
||
) | const |
Is this HyperPoint compatible with this HyperPointSet? (same dimension)
Definition at line 61 of file HyperPointSet.cpp.
HyperPoint HyperPointSet::geometricMean | ( | ) | const |
Get the geometric mean of all points. This does not use the weights.
Definition at line 430 of file HyperPointSet.cpp.
double HyperPointSet::getCorrelation | ( | int | i, |
int | j | ||
) | const |
Get the correlation between two variables.
Definition at line 216 of file HyperPointSet.cpp.
TMatrixD HyperPointSet::getCorrelationMatrix | ( | ) | const |
Get the correlation matrix associated with the HyperPointSet.
Definition at line 285 of file HyperPointSet.cpp.
double HyperPointSet::getCovarience | ( | int | i, |
int | j | ||
) | const |
Get the covarience between two variables.
Definition at line 244 of file HyperPointSet.cpp.
TMatrixD HyperPointSet::getCovarienceMatrix | ( | ) | const |
Get the covarience matrix associated with the HyperPointSet.
Definition at line 270 of file HyperPointSet.cpp.
|
inline |
Get the dimensionality of HyperPoints in the HyperPointSet
Definition at line 40 of file HyperPointSet.h.
double HyperPointSet::getSumW | ( | ) | const |
Find the Sum of weights for all HyperPoints in the HyperPointSet
Definition at line 98 of file HyperPointSet.cpp.
double HyperPointSet::getSumW2 | ( | ) | const |
Find the Sum of weights squared for all HyperPoints in the HyperPointSet
Definition at line 110 of file HyperPointSet.cpp.
HyperPointSet HyperPointSet::gramSchmidtProcess | ( | ) | const |
Use the gramSchmidtProcess to make the first nDim vectors orthanormal. If there are less than this, only size() vectors will be returned (but they will be orthanormal).
Definition at line 126 of file HyperPointSet.cpp.
HyperPoint HyperPointSet::harmonicMean | ( | ) | const |
Get the harmonic mean of all points. This does not use the weights.
Definition at line 453 of file HyperPointSet.cpp.
bool HyperPointSet::linearlyIndependant | ( | ) | const |
Check if the HyperPoints in the HyperPointSet are linearly independent (this isn't implemented yet!!!)
Definition at line 152 of file HyperPointSet.cpp.
void HyperPointSet::load | ( | TString | path | ) |
Load exisiting HyperPointSet from a file. HyperPoints are appended to the end of the
Definition at line 361 of file HyperPointSet.cpp.
HyperPoint HyperPointSet::mean | ( | ) | const |
Get the arithmatic mean of all points. This does not use the weights.
Definition at line 420 of file HyperPointSet.cpp.
void HyperPointSet::normalise | ( | ) |
Normalise all points in the HyperPointSet.
Definition at line 159 of file HyperPointSet.cpp.
void HyperPointSet::print | ( | std::ostream & | os = std::cout | ) | const |
Print out the entire HyperPointSet.
Definition at line 300 of file HyperPointSet.cpp.
void HyperPointSet::push_back | ( | const HyperPoint & | point | ) |
Add new HyperPoint to the HyperPointSet
Definition at line 90 of file HyperPointSet.cpp.
void HyperPointSet::removeDuplicates | ( | ) |
Remove all duplicate events. IMPORTANT must be followed by sort()
Definition at line 178 of file HyperPointSet.cpp.
|
private |
Save the HyperPointSet to the file currently in scope.
Definition at line 331 of file HyperPointSet.cpp.
void HyperPointSet::save | ( | TString | path | ) |
Save the HyperPointSet to a file (opened with RECREATE).
Definition at line 313 of file HyperPointSet.cpp.
unsigned int HyperPointSet::size | ( | ) | const |
Get the number of points in the HyperPointSet
Definition at line 83 of file HyperPointSet.cpp.
void HyperPointSet::sort | ( | ) |
Sort all the HyperPoints in acending order. First sort by the first element, then by the second etc.
Definition at line 170 of file HyperPointSet.cpp.
|
private |
The dimensionality of HyperPoints in the HyperPointSet
Definition at line 33 of file HyperPointSet.h.
|
private |
std::vector containing the HyperPoints
Definition at line 34 of file HyperPointSet.h.