DGtal 1.4.0
|
Aim: Represents an object that places a quantity into a bin, i.e. a functor that associates a natural integer to a continuous value. More...
#include <DGtal/math/CBinner.h>
Public Types | |
typedef T::Quantity | Quantity |
typedef T::Bin | Bin |
Public Member Functions | |
BOOST_CONCEPT_ASSERT ((CEuclideanRing< Quantity >)) | |
BOOST_STATIC_ASSERT ((boost::is_integral< Bin >::value)) | |
BOOST_STATIC_ASSERT ((boost::is_unsigned< Bin >::value)) | |
BOOST_CONCEPT_USAGE (CBinner) | |
void | checkConstConstraints () const |
Private Attributes | |
T | myX |
Quantity | myQ |
Bin | myBin |
T * | myClone |
Aim: Represents an object that places a quantity into a bin, i.e. a functor that associates a natural integer to a continuous value.
Description of concept 'CBinner'
It is used for instance when computing an histogram over samples of a continuous random variable.
Quantity:
the type of domain values (i.e. continuous values), a model of CEuclideanRing.Bin:
should be some unsigned integral type and satisfy boost::is_integral and boost::is_unsigned.X
: A type that is a model of CBinner| Name | Expression | Type requirements | Return type | Precondition | Semantics | Post condition | Complexity | |----—|---------—|----------------—|------------—|-----------—|--------—|-------------—|---------—| | construction | X
( m, M, n ) | m and M are Quantity
, n is a Bin
| | | | Constructs a binner with n bins and range from m to M | | | | apply | x( q ) | q is a Quantity
| Bin
| | returns the bin in which fall q | | |
T | the type that should be a model of CBinner. |
typedef T::Bin DGtal::concepts::CBinner< T >::Bin |
typedef T::Quantity DGtal::concepts::CBinner< T >::Quantity |
DGtal::concepts::CBinner< T >::BOOST_CONCEPT_ASSERT | ( | (CEuclideanRing< Quantity >) | ) |
|
inline |
Definition at line 108 of file CBinner.h.
References DGtal::concepts::CBinner< T >::checkConstConstraints(), DGtal::concepts::CBinner< T >::myBin, DGtal::concepts::CBinner< T >::myClone, and DGtal::concepts::CBinner< T >::myQ.
DGtal::concepts::CBinner< T >::BOOST_STATIC_ASSERT | ( | (boost::is_integral< Bin >::value) | ) |
DGtal::concepts::CBinner< T >::BOOST_STATIC_ASSERT | ( | (boost::is_unsigned< Bin >::value) | ) |
|
inline |
Definition at line 113 of file CBinner.h.
References DGtal::concepts::CBinner< T >::myBin, DGtal::concepts::CBinner< T >::myQ, DGtal::concepts::CBinner< T >::myX, and DGtal::concepts::ConceptUtils::sameType().
Referenced by DGtal::concepts::CBinner< T >::BOOST_CONCEPT_USAGE().
|
private |
Definition at line 121 of file CBinner.h.
Referenced by DGtal::concepts::CBinner< T >::BOOST_CONCEPT_USAGE(), and DGtal::concepts::CBinner< T >::checkConstConstraints().
|
private |
Definition at line 122 of file CBinner.h.
Referenced by DGtal::concepts::CBinner< T >::BOOST_CONCEPT_USAGE().
|
private |
Definition at line 120 of file CBinner.h.
Referenced by DGtal::concepts::CBinner< T >::BOOST_CONCEPT_USAGE(), and DGtal::concepts::CBinner< T >::checkConstConstraints().
|
private |
Definition at line 119 of file CBinner.h.
Referenced by DGtal::concepts::CBinner< T >::checkConstConstraints().