KJB
|
look-up key class for contingency table More...
#include <Categorical_event.h>
Public Types | |
typedef Categorical_event< N > | Self_type |
Public Types inherited from semantics::Categorical_event_base | |
typedef Categorical_event_base | Self_type |
typedef size_t | Val_type |
typedef std::vector< Val_type > | Data_type |
typedef size_t | Hash_type |
Public Member Functions | |
Categorical_event () | |
default ctor More... | |
Categorical_event (Data_type data, size_t size) | |
construct look-up key from a standard container, More... | |
Categorical_event (Data_type::const_iterator first, Data_type::const_iterator last, size_t size) | |
alternative ctor using iterators More... | |
Categorical_event (const Self_type &other) | |
copy constructor More... | |
const size_t & | size () const |
get length of data key More... | |
const size_t & | front () const |
get first data entry More... | |
const size_t & | back () const |
get last data entry More... | |
bool | operator== (const Self_type &other) const |
two keys are equal iff their hash values are equal More... | |
std::ostream & | print_to (std::ostream &os) const |
print key data to ostream os More... | |
Friends | |
Categorical_event< N-1 > | smooth (const Self_type &event, const size_t steps) |
get smoothed key (context simplified by one level) More... | |
Categorical_event< N > | get_context (const Self_type &event, const size_t steps) |
get RHS of conditioning context More... | |
size_t | hash_value (Self_type const &e) |
return underlying hash value More... | |
look-up key class for contingency table
typedef Categorical_event<N> semantics::Categorical_event< N >::Self_type |
|
inline |
default ctor
|
inline |
construct look-up key from a standard container,
data | standard container containing lookup key data |
size | intended size of lookup key (for consistency checking) |
|
inline |
alternative ctor using iterators
first | iterator to beginning of data range |
last | iterator to end of data range |
size | asserted size, for consistency check |
|
inline |
copy constructor
|
inline |
get last data entry
|
inline |
get first data entry
|
inlinevirtual |
two keys are equal iff their hash values are equal
Reimplemented from semantics::Categorical_event_base.
|
virtual |
print key data to ostream os
Reimplemented from semantics::Categorical_event_base.
|
inline |
get length of data key
|
friend |
get RHS of conditioning context
|
friend |
return underlying hash value
|
friend |
get smoothed key (context simplified by one level)