![]() |
Reference Documentation |
#include <P_Uneven_Partition.h>
Inheritance diagram for P_Uneven_Partition:
Public Types | |
typedef T_Point | Mapped_Point |
Very simple RTTI feature. | |
typedef P_Uneven_Partition | Like_Current |
typedef ooVArrayT< T_Point > | Points_Set |
typedef T_Uneven_Partition | T__Partition |
Public Methods | |
virtual | ~P_Uneven_Partition () |
Destructor. | |
P_Uneven_Partition () | |
Empty constructor. | |
P_Uneven_Partition (HTL_STD::vector< float > &some_points, End_Point_Convention a_convention=RIGHT_OPEN) | |
Construct an elementary partition which is delimited by a vector of floats. | |
P_Uneven_Partition (HTL_STD::vector< double > &some_points, End_Point_Convention a_convention=RIGHT_OPEN) | |
Construct an elementary partition which is delimited by a vector of doubles. | |
P_Uneven_Partition (I_Partition &another) | |
Construct a new P_Uneven_Partition out of another I_Partition. | |
virtual double | i_bin_width (Index i) const |
Number of bin indexes that are not in range. | |
virtual Size | bin_count () const |
Number of in-range bin indexes. | |
virtual double | i_lower_point () const |
Leftmost point of the partition. | |
virtual double | i_upper_point () const |
Rightmost point of the partition. | |
virtual double | i_lower_point (Index i) const |
Leftmost point of bin indexed by i . | |
virtual double | i_upper_point (Index i) const |
Rightmost point of bin indexed by i . | |
virtual void | map_point (double a_point, Index &an_index, Extra_Index &an_extra_index) |
Bin mapped to point a_point. | |
void | map_index (T_Point a_point, Index &an_index, Extra_Index &an_extra_index) |
Map a_point to a bin index. | |
void | map_index1 (T_Point a_point, Index &an_index, Extra_Index &an_extra_index) |
Map a_point to a bin index. | |
T_Point | bin_width (Index i) const |
Width of the bin indexed by i . | |
T_Point | lower_point () const |
Same as left-most point of the partition. | |
T_Point | upper_point () const |
Same as right-most point of the partition. | |
T_Point | lower_point (Index i) const |
Left-most point of the in-range bin whose index is i . | |
T_Point | upper_point (Index i) const |
Right-most point of the in-range bin whose index is i . | |
virtual End_Point_Convention | end_point_convention () const |
End point convention: the same for all of the bins. | |
Protected Methods | |
void | initializePartition () |
Protected Attributes | |
T_Point | lower_point_ |
T_Point | upper_point_ |
Size | count_ |
End_Point_Convention | end_point_convention_ |
Points_Set | points_ |
|
Definition at line 24 of file P_Uneven_Partition.h. |
|
Definition at line 23 of file P_Uneven_Partition.h. |
|
Definition at line 25 of file P_Uneven_Partition.h. |
|
Definition at line 26 of file P_Uneven_Partition.h. |
|
Definition at line 29 of file P_Uneven_Partition.h. |
|
Definition at line 31 of file P_Uneven_Partition.h. |
|
All of the delimited intervals have the same endpoint convention which is a_convention. |
|
All of the delimited intervals have the same endpoint convention which is a_convention. |
|
If the actual type of another happens to be Even_Partition, then it is converted to an *Uneven_Partition without loss of information. |
|
Implements I_Partition. Definition at line 72 of file P_Uneven_Partition.h. |
|
Definition at line 132 of file P_Uneven_Partition.h. References bin_count(), HTL_ERR, Index, points_, and T_Point. Referenced by i_bin_width(). |
|
Implements I_Partition. Definition at line 174 of file P_Uneven_Partition.h. References End_Point_Convention, and end_point_convention_. |
|
Implements I_Partition. Definition at line 69 of file P_Uneven_Partition.h. |
|
Implements I_Partition. Definition at line 81 of file P_Uneven_Partition.h. References Index, and lower_point(). |
|
Implements I_Partition. Definition at line 75 of file P_Uneven_Partition.h. References lower_point(). |
|
Implements I_Partition. Definition at line 85 of file P_Uneven_Partition.h. References Index, and upper_point(). |
|
Implements I_Partition. Definition at line 78 of file P_Uneven_Partition.h. References upper_point(). |
|
|
|
Definition at line 151 of file P_Uneven_Partition.h. |
|
The returned type is more specialized. Definition at line 144 of file P_Uneven_Partition.h. References lower_point_, and T_Point. Referenced by i_lower_point(). |
|
The mapped index is passed to an_index when the mapped bin is in range, i.e when the value passed to an_extra_index equals H_IN_RANGE. If an_extra_index equals H_UNDERFLOW or H_OVERFLOW, one cannot not rely on the value passed to an_index: it is undefined. This is a fast inline function which handle the most common case. More complex cases are managed by the non-inlined method map_index1 Definition at line 104 of file P_Uneven_Partition.h. References bin_count(), end_point_convention_, Extra_Index, H_IN_RANGE, Index, lower_point_, map_index1(), RIGHT_OPEN, T_Point, upper_point(), and upper_point_. Referenced by map_point(). |
|
The mapped index is passed to an_index when the mapped bin is in range, i.e when the value passed to an_extra_index equals H_IN_RANGE. If an_extra_index equals H_UNDERFLOW or H_OVERFLOW, one cannot not rely on the value passed to an_index: it is undefined. Referenced by map_index(). |
|
Implements I_Partition. Definition at line 89 of file P_Uneven_Partition.h. References Extra_Index, Index, and map_index(). |
|
Definition at line 162 of file P_Uneven_Partition.h. |
|
The returned type is more specialized. Definition at line 148 of file P_Uneven_Partition.h. References T_Point, and upper_point_. Referenced by i_upper_point(), and map_index(). |
|
Definition at line 183 of file P_Uneven_Partition.h. Referenced by bin_count(), lower_point(), and upper_point(). |
|
Definition at line 185 of file P_Uneven_Partition.h. Referenced by end_point_convention(), and map_index(). |
|
Definition at line 181 of file P_Uneven_Partition.h. Referenced by lower_point(), and map_index(). |
|
Definition at line 186 of file P_Uneven_Partition.h. Referenced by bin_width(), lower_point(), and upper_point(). |
|
Definition at line 182 of file P_Uneven_Partition.h. Referenced by map_index(), and upper_point(). |
Anaphe documentation generated by Doxygen (www.doxygen.org) |