|
Jpp test-rotations-old-533-g2bdbdb559
the software that should make you happy
|
Auxiliary container for statistical analysis of a large number of values. More...
#include <JAstronomyToolkit.hh>
Public Types | |
| typedef std::map< int, std::vector< T > > | map_type |
| typedef map_type::value_type | value_type |
| typedef map_type::const_iterator | const_iterator |
| typedef map_type::const_reverse_iterator | const_reverse_iterator |
Public Member Functions | |
| JQuantile (const double factor) | |
| Constructor. | |
| size_t | getN () const |
| Get total number of values. | |
| T | getMin () const |
| Get minimal value. | |
| T | getMax () const |
| Get maximal value. | |
| int | getKey (const T value) const |
| Get key of given value. | |
| void | put (const T value) |
| Add value to container. | |
| T | getValue (const double P) const |
| Get minimal value corresponding given maximal probability. | |
| double | getProbability (const double value) const |
| Get maximal probability corresponding given minimal value. | |
Public Attributes | |
| const T | factor |
| scaling factor for rounding value | |
Auxiliary container for statistical analysis of a large number of values.
The data are organised in groups according to a numerical key so that the computation involving quantiles can be speed up.
The numerical key is obtained by scaling the value with a given factor and then taking the floor of the result.
The quantiles correspond to a distribution with ascending values.
Definition at line 36 of file JAstronomyToolkit.hh.
| std::map<int, std::vector<T> > JASTRONOMY::JQuantile< T >::map_type |
Definition at line 39 of file JAstronomyToolkit.hh.
| map_type::value_type JASTRONOMY::JQuantile< T >::value_type |
Definition at line 40 of file JAstronomyToolkit.hh.
| map_type::const_iterator JASTRONOMY::JQuantile< T >::const_iterator |
Definition at line 41 of file JAstronomyToolkit.hh.
| map_type::const_reverse_iterator JASTRONOMY::JQuantile< T >::const_reverse_iterator |
Definition at line 42 of file JAstronomyToolkit.hh.
|
inline |
Constructor.
| factor | factor |
Definition at line 50 of file JAstronomyToolkit.hh.
|
inline |
Get total number of values.
Definition at line 60 of file JAstronomyToolkit.hh.
|
inline |
Get minimal value.
Definition at line 71 of file JAstronomyToolkit.hh.
|
inline |
Get maximal value.
Definition at line 88 of file JAstronomyToolkit.hh.
|
inline |
Get key of given value.
| value | value |
Definition at line 106 of file JAstronomyToolkit.hh.
|
inline |
Add value to container.
| value | value |
Definition at line 117 of file JAstronomyToolkit.hh.
|
inline |
Get minimal value corresponding given maximal probability.
| P | probability [0,1> |
Definition at line 129 of file JAstronomyToolkit.hh.
|
inline |
Get maximal probability corresponding given minimal value.
| value | value |
Definition at line 173 of file JAstronomyToolkit.hh.
| const T JASTRONOMY::JQuantile< T >::factor |
scaling factor for rounding value
Definition at line 196 of file JAstronomyToolkit.hh.