HyperPlot  v1
Bin and visualise multidimensional datasets
Public Member Functions | Private Attributes | List of all members
HyperFunction Class Referenceabstract

Detailed Description

HyperPlot, Author: Sam Harnew, sam.h.nosp@m.arne.nosp@m.w@gma.nosp@m.il.c.nosp@m.om , Date: Dec 2015

HyperFunction takes a HyperPoint and returns a double. This can be used to reweight HyperPointSets etc.

Definition at line 27 of file HyperFunction.h.

#include <HyperFunction.h>

Inheritance diagram for HyperFunction:
HyperHistogram

Public Member Functions

 HyperFunction ()
 
 HyperFunction (const HyperCuboid &limits)
 
virtual double getVal (const HyperPoint &point) const =0
 
void reweightDataset (HyperPointSet &points)
 
void setFuncLimits (const HyperCuboid &limits)
 
const HyperCuboidgetFuncLimits () const
 
TH2D make2DFuncSlice (TString name, int sliceDimX, int sliceDimY, const HyperPoint &slicePoint, int nbins=100) const
 
void draw2DFuncSlice (TString path, int sliceDimX, int sliceDimY, const HyperPoint &slicePoint, int nbins=100) const
 
void draw2DFuncSliceSet (TString path, int sliceDimX, int sliceDimY, int sliceSetDim, int nSlices, const HyperPoint &slicePoint, int nbins=100) const
 
void draw2DFuncSliceSet (TString path, int sliceDimX, int sliceDimY, int nSlices, const HyperPoint &slicePoint, int nbins=100) const
 
void draw2DFuncSliceSet (TString path, int nSlices, const HyperPoint &slicePoint, int nbins=100) const
 
double getDifference (const HyperFunction &other, const HyperPoint &point)
 
void fillCorrelations (TH2D &hist, const HyperFunction &other, const HyperPointSet &points)
 
virtual ~HyperFunction ()
 

Private Attributes

HyperCuboid _limits
 

Constructor & Destructor Documentation

HyperFunction::HyperFunction ( )

Constructor

Definition at line 4 of file HyperFunction.cpp.

HyperFunction::HyperFunction ( const HyperCuboid limits)

Constructor

Definition at line 13 of file HyperFunction.cpp.

virtual HyperFunction::~HyperFunction ( )
inlinevirtual

Destructor

Definition at line 58 of file HyperFunction.h.

Member Function Documentation

double HyperFunction::getDifference ( const HyperFunction other,
const HyperPoint point 
)

Get the difference between this HyperFunction and another HyperFunction at a point in n-dim space. (diff = this - other)

Definition at line 174 of file HyperFunction.cpp.

virtual double HyperFunction::getVal ( const HyperPoint point) const
pure virtual

Virtual function that defines a HyperFunction (Map from HyperPoint -> double)

Implemented in HyperHistogram.

void HyperFunction::reweightDataset ( HyperPointSet points)

Reweight a HyperPointSet by the HyperFunction. If weights already exist, the existing weights are mulitplied by the HyperFunction evaluation. If not, a the HyperFunction evaluation is added as the zeroth weight.

Definition at line 24 of file HyperFunction.cpp.


The documentation for this class was generated from the following files: