|
Jpp 20.0.0-rc.6
the software that should make you happy
|
Auxiliary data structure for discovery calculations. More...
#include <JAstronomyToolkit.hh>
Public Types | |
| typedef std::vector< 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 | |
| JDiscovery (JPseudoExperiment_t &px) | |
| Constructor. | |
| double | operator() (const double Q, const double P, const size_t numberOfTests, const double precision=1.0e-3) |
| Get signal strength for which given likelihood is exceeded with given probability. | |
| size_t | getN () const |
| Get total number of values. | |
| T | getMin () const |
| Get minimal value. | |
| T | getMax () const |
| Get maximal value. | |
| void | put (const T value) |
| Add value to container. | |
| void | put (const size_t N, const JFunction_t &object) |
| Add values to container. | |
| void | operator() (const JFunction_t &object) const |
| For-each method. | |
| T | getValue (const double P) const |
| Get minimal value corresponding given maximal probability. | |
| double | getProbability (const T value) const |
| Get maximal probability corresponding given minimal value. | |
Static Public Member Functions | |
| static size_t | getKey (const T value) |
| Get hash key corresponding to given value. | |
Protected Member Functions | |
| double | getProbability (const double fS, const double Q, const size_t numberOfTests) |
| Run pseudo experiments to get probability corresponding to given minimal likelihood. | |
Protected Attributes | |
| JPseudoExperiment_t & | px |
Auxiliary data structure for discovery calculations.
Definition at line 22 of file JAstronomyToolkit.hh.
|
inherited |
Definition at line 31 of file JGarage.hh.
|
inherited |
Definition at line 32 of file JGarage.hh.
|
inherited |
Definition at line 33 of file JGarage.hh.
|
inherited |
Definition at line 34 of file JGarage.hh.
|
inline |
Constructor.
| px | pseudo experiment |
Definition at line 32 of file JAstronomyToolkit.hh.
|
inline |
Get signal strength for which given likelihood is exceeded with given probability.
| Q | likelihood |
| P | probability [0,1> |
| numberOfTests | number of tests |
| precision | precision of signal strength |
Definition at line 46 of file JAstronomyToolkit.hh.
|
inlineprotected |
Run pseudo experiments to get probability corresponding to given minimal likelihood.
| fS | signal strength |
| Q | likelihood |
| numberOfTests | number of tests |
Definition at line 86 of file JAstronomyToolkit.hh.
|
inlineinherited |
Get total number of values.
Definition at line 42 of file JGarage.hh.
|
inlineinherited |
Get minimal value.
Definition at line 55 of file JGarage.hh.
|
inlineinherited |
Get maximal value.
Definition at line 74 of file JGarage.hh.
|
inlinestaticinherited |
Get hash key corresponding to given value.
| value | value |
Definition at line 94 of file JGarage.hh.
|
inlineinherited |
Add value to container.
| value | value |
Definition at line 105 of file JGarage.hh.
|
inlineinherited |
Add values to container.
| N | number of values |
| object | function object returning value |
Definition at line 124 of file JGarage.hh.
|
inlineinherited |
For-each method.
| object | function object |
Definition at line 138 of file JGarage.hh.
|
inlineinherited |
Get minimal value corresponding given maximal probability.
| P | probability [0,1> |
Definition at line 154 of file JGarage.hh.
|
inlineinherited |
Get maximal probability corresponding given minimal value.
| value | value |
Definition at line 196 of file JGarage.hh.
|
protected |
Definition at line 101 of file JAstronomyToolkit.hh.