DGtal  1.4.beta
DGtal::concepts::CBinner< T > Struct Template Reference

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>

Inheritance diagram for DGtal::concepts::CBinner< T >:
[legend]

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

myX
 
Quantity myQ
 
Bin myBin
 
T * myClone
 

Detailed Description

template<typename T>
struct DGtal::concepts::CBinner< T >

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.

Refinement of boost::CopyConstructible

Associated types

Notation

  • X : A type that is a model of CBinner
  • x, y : object of type X

Definitions

Valid expressions and semantics

| 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 | | |

Invariants

Models

Notes

Template Parameters
Tthe type that should be a model of CBinner.

Definition at line 97 of file CBinner.h.

Member Typedef Documentation

◆ Bin

template<typename T >
typedef T::Bin DGtal::concepts::CBinner< T >::Bin

Definition at line 102 of file CBinner.h.

◆ Quantity

template<typename T >
typedef T::Quantity DGtal::concepts::CBinner< T >::Quantity

Definition at line 101 of file CBinner.h.

Member Function Documentation

◆ BOOST_CONCEPT_ASSERT()

template<typename T >
DGtal::concepts::CBinner< T >::BOOST_CONCEPT_ASSERT ( (CEuclideanRing< Quantity >)  )

◆ BOOST_CONCEPT_USAGE()

◆ BOOST_STATIC_ASSERT() [1/2]

template<typename T >
DGtal::concepts::CBinner< T >::BOOST_STATIC_ASSERT ( (boost::is_integral< Bin >::value)  )

◆ BOOST_STATIC_ASSERT() [2/2]

template<typename T >
DGtal::concepts::CBinner< T >::BOOST_STATIC_ASSERT ( (boost::is_unsigned< Bin >::value)  )

◆ checkConstConstraints()

Field Documentation

◆ myBin

template<typename T >
Bin DGtal::concepts::CBinner< T >::myBin
private

◆ myClone

template<typename T >
T* DGtal::concepts::CBinner< T >::myClone
private

Definition at line 122 of file CBinner.h.

Referenced by DGtal::concepts::CBinner< T >::BOOST_CONCEPT_USAGE().

◆ myQ

◆ myX

template<typename T >
T DGtal::concepts::CBinner< T >::myX
private

Definition at line 119 of file CBinner.h.

Referenced by DGtal::concepts::CBinner< T >::checkConstConstraints().


The documentation for this struct was generated from the following file: