Mass center accumulator. More...
#include <center.hh>
Inherits base< V, center< P, V > >.
Public Member Functions | |
| bool | is_valid () const |
| Check whether this accu is able to return a result. | |
| unsigned | nsites () const |
| Return the number of sites taken in consideration. | |
| void | take_as_init (const T &t) |
Take as initialization the value t. | |
| void | take_n_times (unsigned n, const T &t) |
Take n times the value t. | |
| V | to_result () const |
| Get the value of the accumulator. | |
| void | init () |
| Manipulators. | |
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. |
Definition at line 55 of file center.hh.
| void mln::accu::center< P, V >::init | ( | ) | [inline] |
| bool mln::accu::center< P, V >::is_valid | ( | ) | const [inline] |
Check whether this accu is able to return a result.
Definition at line 160 of file center.hh.
Referenced by mln::accu::center< P, V >::to_result().
| unsigned mln::accu::center< P, V >::nsites | ( | ) | const [inline] |
| void mln::Accumulator< center< P, V > >::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 '_').
| void mln::Accumulator< center< P, V > >::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 '_').
| V mln::accu::center< P, V >::to_result | ( | ) | const [inline] |
Get the value of the accumulator.
Definition at line 142 of file center.hh.
References mln::accu::center< P, V >::is_valid().
1.7.1