![]() |
ATLAS Offline Software
|
#include <DataBin.h>
Public Member Functions | |
| DataBin () | |
| Default constructor. Give a bin with 0 content and no extensions. | |
| DataBin (const std::vector< DataPoint > &points, const double epsilon) | |
| Constructor. | |
| DataBin (const Amg::VectorX &lower_boundaries, const Amg::VectorX &upper_boundaries) | |
| Constructor. | |
| double | density () const |
| get the data point density in the bin | |
| const Amg::VectorX & | centreOfBin () const |
| get the centre of the bin | |
| const Amg::VectorX & | lowerBinBoundaries () const |
| get the lower boundaries of the bin | |
| const Amg::VectorX & | upperbinBoundaries () const |
| get the upper boundaries of the bin | |
| const Amg::VectorX & | centreOfGravity () const |
| get the centre of gravity of the data points | |
| const Amg::VectorX & | standardDeviations () const |
| get the standard deviations of the data points from the centre of gravity in all dimensions | |
| unsigned int | numberOfDataPoints () const |
| get the number of data points | |
| const std::vector< DataPoint > & | dataPoints () const |
| get the data points filling this bin | |
| DataBin * | splitBin (const unsigned int &ref_coord) |
| divide the bin into two of equal content; splitting is done along the coordinate ref_coord; the method resize the current bin and return the other half (at least 4 points are required for splitting) | |
| bool | addPoint (const DataPoint &point) |
| add the data point to the bin if possible; returns true if the point can be added, false otherwise | |
| void | addPointAndResize (const DataPoint &point, const double epsilon) |
| add the data point to the bin; the bin will be resized if the point does not fit into the bin; the upper bin boundaries are shifted by epsilon to create a half-open intervall containing all data points | |
| void | setPoints (const std::vector< DataPoint > &points) |
| fill the bin with the given points; the use of this method is highly discouraged, it is needed for the splitting whithout changing the bin boundaries | |
Private Attributes | |
| std::vector< DataPoint > | m_points |
| Amg::VectorX | m_bin_centre |
| Amg::VectorX | m_lower_boundaries |
| Amg::VectorX | m_upper_boundaries |
| Amg::VectorX | m_centre_of_gravity |
| Amg::VectorX | m_standard_deviations |
| DataBin::DataBin | ( | ) |
Default constructor. Give a bin with 0 content and no extensions.
Definition at line 23 of file DataBin.cxx.
| DataBin::DataBin | ( | const std::vector< DataPoint > & | points, |
| const double | epsilon ) |
Constructor.
| points | Data points occupying the bin. |
| epsilon | The upper bin boundaries are shifted by epsilon to create a half-open intervall containing all data points. |
Definition at line 32 of file DataBin.cxx.
| DataBin::DataBin | ( | const Amg::VectorX & | lower_boundaries, |
| const Amg::VectorX & | upper_boundaries ) |
Constructor.
Create an empty bin with the given boundaries.
| lower_boundaries | Lower boundaries of the bin. |
| upper_boundaries | Upper boundaries of the bin. |
Definition at line 46 of file DataBin.cxx.
| bool DataBin::addPoint | ( | const DataPoint & | point | ) |
add the data point to the bin if possible; returns true if the point can be added, false otherwise
Definition at line 246 of file DataBin.cxx.
| void DataBin::addPointAndResize | ( | const DataPoint & | point, |
| const double | epsilon ) |
add the data point to the bin; the bin will be resized if the point does not fit into the bin; the upper bin boundaries are shifted by epsilon to create a half-open intervall containing all data points
Definition at line 295 of file DataBin.cxx.
| const Amg::VectorX & DataBin::centreOfBin | ( | ) | const |
get the centre of the bin
Definition at line 90 of file DataBin.cxx.
| const Amg::VectorX & DataBin::centreOfGravity | ( | ) | const |
get the centre of gravity of the data points
Definition at line 126 of file DataBin.cxx.
| const std::vector< DataPoint > & DataBin::dataPoints | ( | ) | const |
get the data points filling this bin
Definition at line 162 of file DataBin.cxx.
| double DataBin::density | ( | ) | const |
get the data point density in the bin
Definition at line 74 of file DataBin.cxx.
| const Amg::VectorX & DataBin::lowerBinBoundaries | ( | ) | const |
get the lower boundaries of the bin
Definition at line 102 of file DataBin.cxx.
| unsigned int DataBin::numberOfDataPoints | ( | ) | const |
get the number of data points
Definition at line 150 of file DataBin.cxx.
| void DataBin::setPoints | ( | const std::vector< DataPoint > & | points | ) |
fill the bin with the given points; the use of this method is highly discouraged, it is needed for the splitting whithout changing the bin boundaries
Definition at line 358 of file DataBin.cxx.
| DataBin * DataBin::splitBin | ( | const unsigned int & | ref_coord | ) |
divide the bin into two of equal content; splitting is done along the coordinate ref_coord; the method resize the current bin and return the other half (at least 4 points are required for splitting)
Definition at line 174 of file DataBin.cxx.
| const Amg::VectorX & DataBin::standardDeviations | ( | ) | const |
get the standard deviations of the data points from the centre of gravity in all dimensions
Definition at line 138 of file DataBin.cxx.
| const Amg::VectorX & DataBin::upperbinBoundaries | ( | ) | const |
get the upper boundaries of the bin
Definition at line 114 of file DataBin.cxx.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |