Compute the rectangularity of a site set. More...
#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 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 |
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_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_ |
Compute the rectangularity of a site set.
typedef accu::shape::bbox<P> mln::accu::site_set::rectangularity< P >::A1 |
typedef accu::math::count<P> mln::accu::site_set::rectangularity< P >::A2 |
typedef Accumulator<void> mln::Accumulator< E >::category [inherited] |
Reimplemented from mln::Proxy< E >.
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 |
typedef mln::metal::unqualif< R >::ret mln::accu::internal::base< R, E >::result [inherited] |
typedef accu::internal::couple<accu::shape::bbox<P>, accu::math::count<P>, float, rectangularity<P> > mln::accu::site_set::rectangularity< P >::super_ |
mln::accu::site_set::rectangularity< P >::rectangularity | ( | ) | [inline] |
Constructor.
rectangularity< P >::A2::result mln::accu::site_set::rectangularity< P >::area | ( | ) | const [inline] |
Return the site set area.
rectangularity< P >::A1::result mln::accu::site_set::rectangularity< P >::bbox | ( | ) | const [inline] |
Return the site set bounding box.
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] |
R base::subj_ | ( | ) | [inline, inherited] |
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] |
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 '_').
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] |
void mln::Accumulator< E >::take_as_init_ | ( | const T & | t | ) | [inherited] |
Default implementation of "take as initialization".
References mln::exact().
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 '_').
References mln::exact(), and mln::mln_exact().
void mln::Accumulator< E >::take_n_times_ | ( | unsigned | n, | |
const T & | t | |||
) | [inherited] |
Default implementation of "take n times".
References mln::exact().
rectangularity< P >::result mln::accu::site_set::rectangularity< P >::to_result | ( | ) | const [inline] |
Return the rectangularity value.
accu::shape::bbox< P > mln::accu::internal::couple< accu::shape::bbox< P > , accu::math::count< P > , float , rectangularity< P > >::a1_ [protected, inherited] |
accu::math::count< P > mln::accu::internal::couple< accu::shape::bbox< P > , accu::math::count< P > , float , rectangularity< P > >::a2_ [protected, inherited] |