$extrastylesheet
#include <mln/accu/center.hh>
Public Member Functions | |
center () | |
bool | is_valid () const |
unsigned | nsites () const |
operator P () const | |
V | subj_ () |
void | take_as_init (const T &t) |
void | take_as_init_ (const T &t) |
void | take_n_times (unsigned n, const T &t) |
void | take_n_times_ (unsigned n, const T &t) |
V | to_result () const |
void | init () |
void | take (const argument &t) |
void | take (const center< P, V > &other) |
Protected Attributes | |
algebra::vec< P::dim, typename mln::value::props< typename P::coord >::sum > | center_ |
unsigned | nsites_ |
Public Types | |
typedef P | argument |
typedef Accumulator< void > | category |
typedef center< P, V > | exact_t |
typedef V | q_result |
typedef V | result |
Mass center accumulator.
P | the type of site. |
V | the type of vector to be used as result. The default vector type is the one provided by P. |
mln::accu::center< P, V >::center | ( | ) |
void mln::accu::center< P, V >::init | ( | ) |
Manipulators.
bool mln::accu::center< P, V >::is_valid | ( | ) | const |
Check whether this accu is able to return a result.
unsigned mln::accu::center< P, V >::nsites | ( | ) | const |
Return the number of sites taken in consideration.
mln::accu::center< P, V >::operator P | ( | ) | const |
|
inherited |
void mln::accu::center< P, V >::take | ( | const argument & | t | ) |
void mln::accu::center< P, V >::take | ( | const center< P, V > & | other | ) |
|
inherited |
Take as initialization the value t
.
|
inherited |
INTERNAL_API
Default implementation of "take as initialization".
|
inherited |
Take n
times the value t
.
|
inherited |
INTERNAL_API
Default implementation of "take n times".
V mln::accu::center< P, V >::to_result | ( | ) | const |
Get the value of the accumulator.
|
protected |
|
protected |
typedef P mln::accu::center< P, V >::argument |
|
inherited |
Definition at line 64 of file accumulator.hh.
|
inherited |
|
inherited |
typedef V mln::accu::center< P, V >::result |