Jpp
|
Type definition of a JHistogramMap based on JMap implementation. More...
#include <JHistogramMap_t.hh>
Public Types | |
typedef JMap< JKey_t, JHistogram_t, JDistance_t > | collection_type |
typedef JHistogram< JKey_t, typename JHistogram_t ::contents_type > | histogram_type |
typedef collection_type::abscissa_type | abscissa_type |
typedef collection_type::ordinate_type | ordinate_type |
typedef collection_type::value_type | value_type |
typedef collection_type::const_iterator | const_iterator |
typedef collection_type::const_reverse_iterator | const_reverse_iterator |
typedef collection_type::iterator | iterator |
typedef collection_type::reverse_iterator | reverse_iterator |
typedef histogram_type::contents_type | contents_type |
typedef JKey_t | key_type |
typedef JHistogram_t | mapped_type |
typedef JCollection< JElement2D< JKey_t, JHistogram_t >, JDistance_t > | container_type |
typedef JDistance_t | distance_type |
typedef JCollectionElementTransformer< value_type > | transformer_type |
typedef std::pair< const_iterator, bool > | pair_type |
Public Member Functions | |
virtual void | evaluate (const abscissa_type *pX, typename JLANG::JClass< contents_type >::argument_type w) |
Fill histogram. More... | |
virtual void | evaluate (const abscissa_type *pX, typename JLANG::JClass< contents_type >::argument_type w)=0 |
Histogram filling. More... | |
JHistogramMap & | mul (typename JLANG::JClass< contents_type >::argument_type factor) |
Scale contents. More... | |
JMap & | mul (const double value) |
Scale contents. More... | |
JFirst_t & | mul (const JSecond_t &object) |
Multiply with object. More... | |
JMap< JKey_t, JHistogram_t, JDistance_t > & | mul (const JSecond_t &object) |
Multiply with object. More... | |
JHistogram & | mul (const double value) |
Scale histogram. More... | |
JHistogramMap & | div (typename JLANG::JClass< contents_type >::argument_type factor) |
Scale contents. More... | |
JMap & | div (const double value) |
Scale contents. More... | |
JHistogram & | div (double value) |
Scale histogram. More... | |
JMap & | add (const JMap &map) |
Add map. More... | |
JCollection & | add (const JCollection &collection) |
Add collection. More... | |
JCollection & | add (typename JClass< ordinate_type >::argument_type value) |
Add offset. More... | |
JCollection & | add (const JFunction1D_t &function) |
Add function. More... | |
JHistogram & | add (const JHistogram &histogram) |
Add histogram. More... | |
JMap & | sub (const JMap &map) |
Subtract map. More... | |
JCollection & | sub (const JCollection &collection) |
Subtract collection. More... | |
JCollection & | sub (typename JClass< ordinate_type >::argument_type value) |
Subtract offset. More... | |
JCollection & | sub (const JFunction1D_t &function) |
Subtract function. More... | |
JHistogram & | sub (const JHistogram &histogram) |
Subtract histogram. More... | |
virtual void | clear () |
Clear. More... | |
virtual ordinate_type & | get (typename JClass< abscissa_type >::argument_type x) |
Get ordinate value. More... | |
virtual mapped_type & | get (typename JClass< key_type >::argument_type key)=0 |
Get mapped value. More... | |
virtual int | getSize () const |
Get number of elements. More... | |
virtual abscissa_type | getX (int index) const |
Get abscissa value. More... | |
virtual abscissa_type | getXmin () const |
Get minimal abscissa value. More... | |
virtual abscissa_type | getXmax () const |
Get maximal abscissa value. More... | |
const ordinate_type & | getY (int index) const |
Get ordinate value. More... | |
ordinate_type & | getY (int index) |
Get ordinate value. More... | |
void | transform (const transformer_type &transformer) |
Transform collection. More... | |
void | sort () |
Sort elements. More... | |
const_iterator | lower_bound (typename JClass< abscissa_type >::argument_type x) const |
Get first position of element i , where x >= i->getX() . More... | |
iterator | lower_bound (typename JClass< abscissa_type >::argument_type x) |
Get first position of element i , where x >= i->getX() . More... | |
pair_type | insert (const value_type &element) |
Insert element. More... | |
void | configure (const JAbstractCollection< abscissa_type > &bounds) |
Configure collection. More... | |
void | configure (const JAbstractCollection< abscissa_type > &bounds, typename JClass< ordinate_type >::argument_type value) |
Configure collection. More... | |
void | configure (const JAbstractCollection< abscissa_type > &bounds, const JFunction1D_t &function) |
Configure collection. More... | |
bool | is_compatible (const JCollection &collection) const |
Test whether collections are compatible. More... | |
JCollection & | negate () |
Negate collection. More... | |
const JComparator & | getComparator () const |
Get comparator. More... | |
mapped_type & | operator[] (typename JClass< key_type >::argument_type key) |
Get mapped value. More... | |
void | put (typename JClass< key_type > ::argument_type key, typename JClass< mapped_type >::argument_type value) |
Put pair-wise element (key,value) into collection. More... | |
bool | is_equal (const JAbstractCollection &collection) const |
Test whether abstract collections are equal. More... | |
const contents_type & | getUnderflow () const |
Get contents below lower limit. More... | |
const contents_type & | getOverflow () const |
Get contents above upper limit. More... | |
const contents_type & | getIntegral () const |
Get contents above upper limit. More... | |
Public Attributes | |
JDistance_t | getDistance |
Function object for distance evaluation. More... | |
Protected Member Functions | |
void | resize (typename container_type::size_type size) |
Resize collection. More... | |
Protected Attributes | |
JComparator | compare |
Function object for comparison. More... | |
contents_type | underflow |
contents_type | overflow |
contents_type | integral |
Private Member Functions | |
void | erase () |
void | push_back () |
void | pop_back () |
Type definition of a JHistogramMap based on JMap implementation.
Definition at line 25 of file JHistogramMap_t.hh.
|
inherited |
Definition at line 34 of file JHistogramMap.hh.
|
inherited |
Definition at line 35 of file JHistogramMap.hh.
|
inherited |
Definition at line 37 of file JHistogramMap.hh.
|
inherited |
Definition at line 38 of file JHistogramMap.hh.
|
inherited |
Definition at line 39 of file JHistogramMap.hh.
|
inherited |
Definition at line 41 of file JHistogramMap.hh.
|
inherited |
Definition at line 42 of file JHistogramMap.hh.
|
inherited |
Definition at line 43 of file JHistogramMap.hh.
|
inherited |
Definition at line 44 of file JHistogramMap.hh.
|
inherited |
Definition at line 47 of file JHistogramMap.hh.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Definition at line 83 of file JCollection.hh.
|
inherited |
Definition at line 94 of file JCollection.hh.
|
inherited |
Definition at line 95 of file JCollection.hh.
|
inlinevirtualinherited |
Fill histogram.
pX | pointer to abscissa values |
w | weight |
Definition at line 63 of file JHistogramMap.hh.
|
pure virtualinherited |
Histogram filling.
pX | pointer to abscissa values |
w | weight |
|
inlineinherited |
Scale contents.
factor | multiplication factor |
Definition at line 87 of file JHistogramMap.hh.
|
inlineinherited |
|
inlineinherited |
Multiply with object.
object | object |
Definition at line 273 of file JMath.hh.
|
inlineinherited |
Multiply with object.
object | object |
Definition at line 273 of file JMath.hh.
|
inlineinherited |
Scale histogram.
value | multiplication factor |
Definition at line 101 of file JHistogram.hh.
|
inlineinherited |
Scale contents.
factor | division factor |
Definition at line 102 of file JHistogramMap.hh.
|
inlineinherited |
|
inlineinherited |
Scale histogram.
value | division factor |
Definition at line 117 of file JHistogram.hh.
|
inlineinherited |
|
inlineinherited |
Add collection.
collection | collection |
Definition at line 434 of file JCollection.hh.
|
inlineinherited |
Add offset.
value | offset |
Definition at line 582 of file JCollection.hh.
|
inlineinherited |
Add function.
function | function |
Definition at line 615 of file JCollection.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Subtract collection.
collection | collection |
Definition at line 490 of file JCollection.hh.
|
inlineinherited |
Subtract offset.
value | offset |
Definition at line 598 of file JCollection.hh.
|
inlineinherited |
Subtract function.
function | function |
Definition at line 632 of file JCollection.hh.
|
inlineinherited |
|
inlinevirtualinherited |
Clear.
Implements JTOOLS::JMappableCollection< JKey_t, JValue_t >.
Definition at line 148 of file JCollection.hh.
|
inlinevirtualinherited |
Get ordinate value.
x | abscissa value |
Definition at line 160 of file JCollection.hh.
|
pure virtualinherited |
Get mapped value.
key | key |
Implemented in JTOOLS::JGarbageCollection< JKey_t, JValue_t >, JTOOLS::JHashMap< JKey_t, JValue_t, JEvaluator_t >, JTOOLS::JHashMap< JHead_t, JValue_t, JEvaluator_t >, JTOOLS::JHashMap< int, JModuleSignalProcessor >, JTOOLS::JHashMap< JHead_t, JHashMap< JTail_t, JValue_t, JEvaluator_t >, JEvaluator_t >, and JTOOLS::JCollection< JElement_t, JDistance_t >.
|
inlinevirtualinherited |
Get number of elements.
Implements JTOOLS::JAbstractCollection< JAbscissa_t >.
Definition at line 177 of file JCollection.hh.
|
inlinevirtualinherited |
Get abscissa value.
index | index |
Implements JTOOLS::JAbstractCollection< JAbscissa_t >.
Definition at line 189 of file JCollection.hh.
|
inlinevirtualinherited |
Get minimal abscissa value.
Implements JTOOLS::JAbstractCollection< JAbscissa_t >.
Definition at line 200 of file JCollection.hh.
|
inlinevirtualinherited |
Get maximal abscissa value.
Implements JTOOLS::JAbstractCollection< JAbscissa_t >.
Definition at line 211 of file JCollection.hh.
|
inlineinherited |
Get ordinate value.
index | index |
Definition at line 224 of file JCollection.hh.
|
inlineinherited |
Get ordinate value.
index | index |
Definition at line 236 of file JCollection.hh.
|
inlineinherited |
Transform collection.
transformer | element transformer |
Definition at line 247 of file JCollection.hh.
|
inlineinherited |
Sort elements.
Definition at line 262 of file JCollection.hh.
|
inlineinherited |
Get first position of element i
, where x >= i->getX()
.
x | abscissa value |
Definition at line 274 of file JCollection.hh.
|
inlineinherited |
Get first position of element i
, where x >= i->getX()
.
x | abscissa value |
Definition at line 286 of file JCollection.hh.
|
inlineinherited |
Insert element.
element | element |
Definition at line 298 of file JCollection.hh.
|
inlineinherited |
Configure collection.
bounds | abscissa values |
Definition at line 314 of file JCollection.hh.
|
inlineinherited |
Configure collection.
bounds | abscissa values |
value | ordinate value |
Definition at line 326 of file JCollection.hh.
|
inlineinherited |
Configure collection.
bounds | abscissa values |
function | function |
Definition at line 347 of file JCollection.hh.
|
inlineinherited |
Test whether collections are compatible.
collection | collection |
Definition at line 376 of file JCollection.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineprotectedinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
inlineinherited |
Get mapped value.
key | key |
Definition at line 64 of file JMappableCollection.hh.
|
inlineinherited |
Put pair-wise element (key,value) into collection.
key | key |
value | value |
Definition at line 76 of file JMappableCollection.hh.
|
inlineinherited |
Test whether abstract collections are equal.
collection | abstract collection |
Definition at line 69 of file JAbstractCollection.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
Function object for distance evaluation.
Definition at line 754 of file JCollection.hh.
|
protectedinherited |
Function object for comparison.
Definition at line 761 of file JCollection.hh.
|
protectedinherited |
Definition at line 195 of file JHistogram.hh.
|
protectedinherited |
Definition at line 196 of file JHistogram.hh.
|
protectedinherited |
Definition at line 197 of file JHistogram.hh.