Public Types | Public Member Functions | Protected Attributes

mln::accu::site_set::rectangularity< P > Class Template Reference
[On site sets]

Compute the rectangularity of a site set. More...

#include <rectangularity.hh>

Inheritance diagram for mln::accu::site_set::rectangularity< P >:
Inheritance graph

List of all members.

Public Types

typedef accu::shape::bbox< P > A1
typedef accu::math::count< P > A2
typedef Accumulator< void > category
typedef E exact_t
typedef R q_result
typedef float result
typedef mln::metal::unqualif
< R >::ret 
result
typedef accu::internal::couple
< accu::shape::bbox< P >
, accu::math::count< P >
, float, rectangularity< P > > 
super_

Public Member Functions

A2::result area () const
 Return the site set area.
A1::result bbox () const
 Return the site set bounding box.
accu::shape::bbox< P > & first ()
const accu::shape::bbox< P > & first () const
bool is_valid () const
 Check whether this accu is able to return a result.
typedef mln_argument (accu::shape::bbox< P >) argument
 rectangularity ()
 Constructor.
accu::math::count< P > & second ()
const accu::math::count< P > & second () const
subj_ ()
template<typename T >
void take_as_init (const T &t)
 Take as initialization the value t.
template<typename T >
void take_as_init_ (const T &t)
 Default implementation of "take as initialization".
template<typename T >
void take_n_times (unsigned n, const T &t)
 Take n times the value t.
template<typename T >
void take_n_times_ (unsigned n, const T &t)
 Default implementation of "take n times".
result to_result () const
 Return the rectangularity value.

void init ()
 Manipulators.
void take_as_init (const argument &t)
void take (const argument &t)
void take (const rectangularity< P > &other)

Protected Attributes

accu::shape::bbox< P > a1_
accu::math::count< P > a2_

Detailed Description

template<typename P>
class mln::accu::site_set::rectangularity< P >

Compute the rectangularity of a site set.

Definition at line 51 of file rectangularity.hh.


Member Typedef Documentation

template<typename P>
typedef accu::shape::bbox<P> mln::accu::site_set::rectangularity< P >::A1

Definition at line 65 of file rectangularity.hh.

template<typename P>
typedef accu::math::count<P> mln::accu::site_set::rectangularity< P >::A2

Definition at line 66 of file rectangularity.hh.

template<typename E>
typedef Accumulator<void> mln::Accumulator< E >::category [inherited]

Reimplemented from mln::Proxy< E >.

Definition at line 80 of file accumulator.hh.

template<typename E>
typedef E mln::Object< E >::exact_t [inherited]

Definition at line 173 of file object.hh.

template<typename R, typename E>
typedef R mln::accu::internal::base< R, E >::q_result [inherited]

Reimplemented in mln::accu::stat::histo3d_rgb< V >.

Definition at line 58 of file base.hh.

template<typename P>
typedef float mln::accu::site_set::rectangularity< P >::result

Definition at line 68 of file rectangularity.hh.

template<typename R, typename E>
typedef mln::metal::unqualif< R >::ret mln::accu::internal::base< R, E >::result [inherited]

Definition at line 63 of file rectangularity.hh.


Constructor & Destructor Documentation

template<typename P >
mln::accu::site_set::rectangularity< P >::rectangularity (  )  [inline]

Constructor.

Definition at line 91 of file rectangularity.hh.


Member Function Documentation

template<typename P >
rectangularity< P >::A2::result mln::accu::site_set::rectangularity< P >::area (  )  const [inline]

Return the site set area.

Definition at line 107 of file rectangularity.hh.

template<typename P >
rectangularity< P >::A1::result mln::accu::site_set::rectangularity< P >::bbox (  )  const [inline]

Return the site set bounding box.

Definition at line 98 of file rectangularity.hh.

accu::shape::bbox< P > & mln::accu::internal::couple< accu::shape::bbox< P > , accu::math::count< P > , float , rectangularity< P > >::first (  )  [inherited]
const accu::shape::bbox< P > & mln::accu::internal::couple< accu::shape::bbox< P > , accu::math::count< P > , float , rectangularity< P > >::first (  )  const [inherited]
void mln::accu::internal::couple< accu::shape::bbox< P > , accu::math::count< P > , float , rectangularity< P > >::init (  )  [inherited]

Manipulators.

bool mln::accu::internal::couple< accu::shape::bbox< P > , accu::math::count< P > , float , rectangularity< P > >::is_valid (  )  const [inherited]

Check whether this accu is able to return a result.

Always true here.

typedef mln::accu::internal::couple< accu::shape::bbox< P > , accu::math::count< P > , float , rectangularity< P > >::mln_argument ( accu::shape::bbox< P >   )  [inherited]
accu::math::count< P > & mln::accu::internal::couple< accu::shape::bbox< P > , accu::math::count< P > , float , rectangularity< P > >::second (  )  [inherited]
const accu::math::count< P > & mln::accu::internal::couple< accu::shape::bbox< P > , accu::math::count< P > , float , rectangularity< P > >::second (  )  const [inherited]
template<typename R , typename E >
R base::subj_ (  )  [inline, inherited]

Definition at line 77 of file base.hh.

References mln::exact().

void mln::accu::internal::couple< accu::shape::bbox< P > , accu::math::count< P > , float , rectangularity< P > >::take ( const argument &  t  )  [inherited]
void mln::accu::internal::couple< accu::shape::bbox< P > , accu::math::count< P > , float , rectangularity< P > >::take ( const rectangularity< P > &  other  )  [inherited]
template<typename E >
template<typename T >
void mln::Accumulator< E >::take_as_init ( const T &  t  )  [inherited]

Take as initialization the value t.

Dev note: this is a final method; override if needed by take_as_init_ (ending with '_').

Definition at line 186 of file accumulator.hh.

References mln::exact(), and mln::mln_exact().

Referenced by mln::morpho::elementary::impl::gradient_on_function(), and mln::morpho::elementary::impl::gradient_on_function_fastest().

void mln::accu::internal::couple< accu::shape::bbox< P > , accu::math::count< P > , float , rectangularity< P > >::take_as_init ( const argument &  t  )  [inherited]
template<typename E >
template<typename T >
void mln::Accumulator< E >::take_as_init_ ( const T &  t  )  [inherited]

Default implementation of "take as initialization".

Definition at line 200 of file accumulator.hh.

References mln::exact().

template<typename E >
template<typename T >
void mln::Accumulator< E >::take_n_times ( unsigned  n,
const T &  t 
) [inherited]

Take n times the value t.

Dev note: this is a final method; override if needed by take_as_init_ (ending with '_').

Definition at line 213 of file accumulator.hh.

References mln::exact(), and mln::mln_exact().

template<typename E >
template<typename T >
void mln::Accumulator< E >::take_n_times_ ( unsigned  n,
const T &  t 
) [inherited]

Default implementation of "take n times".

Definition at line 230 of file accumulator.hh.

References mln::exact().

template<typename P >
rectangularity< P >::result mln::accu::site_set::rectangularity< P >::to_result (  )  const [inline]

Return the rectangularity value.

Definition at line 116 of file rectangularity.hh.


Member Data Documentation

accu::shape::bbox< P > mln::accu::internal::couple< accu::shape::bbox< P > , accu::math::count< P > , float , rectangularity< P > >::a1_ [protected, inherited]

Definition at line 82 of file accu/internal/couple.hh.

accu::math::count< P > mln::accu::internal::couple< accu::shape::bbox< P > , accu::math::count< P > , float , rectangularity< P > >::a2_ [protected, inherited]

Definition at line 83 of file accu/internal/couple.hh.