#include <rectangularity.hh>
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 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. | |
const A1 & | first () const |
A1 & | first () |
bool | is_valid () const |
Check whether this accu is able to return a result. | |
typedef | mln_argument (A1) argument |
rectangularity () | |
Constructor. | |
const A2 & | second () const |
A2 & | second () |
R | 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 (const E &other) |
void | take (const argument &t) |
void | take_as_init (const argument &t) |
Protected Attributes | |
A1 | a1_ |
A2 | a2_ |
Definition at line 51 of file rectangularity.hh.
typedef accu::shape::bbox<P> mln::accu::site_set::rectangularity< P >::A1 |
Definition at line 65 of file rectangularity.hh.
typedef accu::math::count<P> mln::accu::site_set::rectangularity< P >::A2 |
Definition at line 66 of file rectangularity.hh.
typedef Accumulator<void> mln::Accumulator< E >::category [inherited] |
typedef E mln::Object< E >::exact_t [inherited] |
typedef R mln::accu::internal::base< R, E >::q_result [inherited] |
typedef float mln::accu::site_set::rectangularity< P >::result |
Reimplemented from mln::accu::internal::base< R, E >.
Definition at line 68 of file rectangularity.hh.
typedef accu::internal::couple<accu::shape::bbox<P>, accu::math::count<P>, float, rectangularity<P> > mln::accu::site_set::rectangularity< P >::super_ |
Definition at line 63 of file rectangularity.hh.
mln::accu::site_set::rectangularity< P >::rectangularity | ( | ) | [inline] |
rectangularity< P >::A2::result mln::accu::site_set::rectangularity< P >::area | ( | ) | const [inline] |
rectangularity< P >::A1::result mln::accu::site_set::rectangularity< P >::bbox | ( | ) | const [inline] |
const A1 & mln::accu::internal::couple< A1, A2, R, E >::first | ( | ) | const [inline, inherited] |
Definition at line 151 of file accu/internal/couple.hh.
References mln::accu::internal::couple< A1, A2, R, E >::a1_.
A1 & mln::accu::internal::couple< A1, A2, R, E >::first | ( | ) | [inline, inherited] |
Definition at line 143 of file accu/internal/couple.hh.
References mln::accu::internal::couple< A1, A2, R, E >::a1_.
void mln::accu::internal::couple< A1, A2, R, E >::init | ( | ) | [inline, inherited] |
Manipulators.
Definition at line 99 of file accu/internal/couple.hh.
References mln::accu::internal::couple< A1, A2, R, E >::a1_, and mln::accu::internal::couple< A1, A2, R, E >::a2_.
Referenced by mln::accu::internal::couple< A1, A2, R, E >::couple().
bool mln::accu::internal::couple< A1, A2, R, E >::is_valid | ( | ) | const [inline, inherited] |
Check whether this accu is able to return a result.
Always true here.
Definition at line 135 of file accu/internal/couple.hh.
References mln::accu::internal::couple< A1, A2, R, E >::a1_, and mln::accu::internal::couple< A1, A2, R, E >::a2_.
typedef mln::accu::internal::couple< A1, A2, R, E >::mln_argument | ( | A1 | ) | [inherited] |
const A2 & mln::accu::internal::couple< A1, A2, R, E >::second | ( | ) | const [inline, inherited] |
Definition at line 167 of file accu/internal/couple.hh.
References mln::accu::internal::couple< A1, A2, R, E >::a2_.
A2 & mln::accu::internal::couple< A1, A2, R, E >::second | ( | ) | [inline, inherited] |
Definition at line 159 of file accu/internal/couple.hh.
References mln::accu::internal::couple< A1, A2, R, E >::a2_.
R base::subj_ | ( | ) | [inline, inherited] |
void mln::accu::internal::couple< A1, A2, R, E >::take | ( | const E & | other | ) | [inline, inherited] |
Definition at line 126 of file accu/internal/couple.hh.
References mln::accu::internal::couple< A1, A2, R, E >::a1_, and mln::accu::internal::couple< A1, A2, R, E >::a2_.
void mln::accu::internal::couple< A1, A2, R, E >::take | ( | const argument & | t | ) | [inline, inherited] |
Definition at line 117 of file accu/internal/couple.hh.
References mln::accu::internal::couple< A1, A2, R, E >::a1_, and mln::accu::internal::couple< A1, A2, R, E >::a2_.
void mln::Accumulator< E >::take_as_init | ( | const T & | t | ) | [inline, inherited] |
Take as initialization the value t
.
Dev note: this is a final method; override if needed by take_as_init_ (ending with '_').
Reimplemented in mln::accu::stat::variance< T, S, R >.
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< A1, A2, R, E >::take_as_init | ( | const argument & | t | ) | [inline, inherited] |
Definition at line 108 of file accu/internal/couple.hh.
References mln::accu::internal::couple< A1, A2, R, E >::a1_, and mln::accu::internal::couple< A1, A2, R, E >::a2_.
void mln::Accumulator< E >::take_as_init_ | ( | const T & | t | ) | [inline, inherited] |
Default implementation of "take as initialization".
Reimplemented in mln::accu::math::inf< T >, mln::accu::math::sum< T, S >, mln::accu::math::sup< T >, mln::accu::pair< A1, A2, T >, mln::accu::rms< T, V >, mln::accu::stat::max< T >, mln::accu::stat::min< T >, mln::accu::stat::rank_high_quant< T >, and mln::accu::stat::var< T >.
Definition at line 200 of file accumulator.hh.
References mln::exact().
void mln::Accumulator< E >::take_n_times | ( | unsigned | n, | |
const T & | t | |||
) | [inline, 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().
void mln::Accumulator< E >::take_n_times_ | ( | unsigned | n, | |
const T & | t | |||
) | [inline, inherited] |
Default implementation of "take n times".
Reimplemented in mln::accu::stat::var< T >.
Definition at line 230 of file accumulator.hh.
References mln::exact().
rectangularity< P >::result mln::accu::site_set::rectangularity< P >::to_result | ( | ) | const [inline] |
A1 mln::accu::internal::couple< A1, A2, R, E >::a1_ [protected, inherited] |
Definition at line 82 of file accu/internal/couple.hh.
Referenced by mln::accu::internal::couple< A1, A2, R, E >::first(), mln::accu::internal::couple< A1, A2, R, E >::init(), mln::accu::internal::couple< A1, A2, R, E >::is_valid(), mln::accu::internal::couple< A1, A2, R, E >::take(), and mln::accu::internal::couple< A1, A2, R, E >::take_as_init().
A2 mln::accu::internal::couple< A1, A2, R, E >::a2_ [protected, inherited] |
Definition at line 83 of file accu/internal/couple.hh.
Referenced by mln::accu::internal::couple< A1, A2, R, E >::init(), mln::accu::internal::couple< A1, A2, R, E >::is_valid(), mln::accu::internal::couple< A1, A2, R, E >::second(), mln::accu::internal::couple< A1, A2, R, E >::take(), and mln::accu::internal::couple< A1, A2, R, E >::take_as_init().