#include <rank.hh>

| Public Types | |
| typedef T | argument | 
| typedef Accumulator< void > | category | 
| typedef E | exact_t | 
| typedef R | q_result | 
| typedef mln::metal::unqualif < R >::ret | result | 
| typedef mln::value::set< T > | S | 
| Public Member Functions | |
| unsigned | card () const | 
| bool | is_valid () const | 
| Check whether this accu is able to return a result. | |
| unsigned | k () const | 
| Give the rank. | |
| rank (unsigned k) | |
| rank () | |
| 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 ntimes the valuet. | |
| template<typename T> | |
| void | take_n_times_ (unsigned n, const T &t) | 
| Default implementation of "take n times". | |
| const T & | to_result () const | 
| Get the value of the accumulator. | |
| void | init () | 
| Manipulators. | |
| void | take (const rank< T > &other) | 
| void | take (const argument &t) | 
| void | untake (const rank< T > &other) | 
| void | untake (const argument &t) | 
| Protected Member Functions | |
| void | go_minus_ () const | 
| void | go_plus_ () const | 
| void | update_ () const | 
| Protected Attributes | |
| accu::histo< T > | h_ | 
| unsigned | i_ | 
| unsigned | k_ | 
| const S & | s_ | 
| unsigned | sum_minus_ | 
| unsigned | sum_plus_ | 
| argument | t_ | 
| bool | valid_ | 
The parameter T is the type of values. 
Definition at line 60 of file rank.hh.
| typedef T mln::accu::stat::rank< T >::argument | 
| 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 mln::metal::unqualif< R >::ret mln::accu::internal::base< R, E >::result  [inherited] | 
| typedef mln::value::set<T> mln::accu::stat::rank< T >::S | 
| mln::accu::stat::rank< T >::rank | ( | ) |  [inline] | 
| mln::accu::stat::rank< T >::rank | ( | unsigned | k | ) |  [inline, explicit] | 
| unsigned mln::accu::stat::rank< T >::card | ( | ) | const  [inline] | 
Definition at line 77 of file rank.hh.
References mln::accu::stat::rank< T >::h_, and mln::accu::histo< V >::sum().
| void mln::accu::stat::rank< T >::go_minus_ | ( | ) | const  [inline, protected] | 
Definition at line 285 of file rank.hh.
References mln::accu::stat::rank< T >::h_, mln::accu::stat::rank< T >::i_, mln::accu::stat::rank< T >::k_, mln::accu::stat::rank< T >::s_, mln::accu::stat::rank< T >::sum_minus_, mln::accu::stat::rank< T >::sum_plus_, and mln::accu::stat::rank< T >::t_.
Referenced by mln::accu::stat::rank< T >::update_().
| void mln::accu::stat::rank< T >::go_plus_ | ( | ) | const  [inline, protected] | 
Definition at line 302 of file rank.hh.
References mln::accu::stat::rank< T >::h_, mln::accu::stat::rank< T >::i_, mln::accu::stat::rank< T >::k_, mln::accu::stat::rank< T >::s_, mln::accu::stat::rank< T >::sum_minus_, mln::accu::stat::rank< T >::sum_plus_, and mln::accu::stat::rank< T >::t_.
Referenced by mln::accu::stat::rank< T >::update_().
| void mln::accu::stat::rank< T >::init | ( | ) |  [inline] | 
Manipulators.
Definition at line 319 of file rank.hh.
References mln::accu::stat::rank< T >::h_, mln::accu::stat::rank< T >::i_, mln::accu::histo< V >::init(), mln::accu::stat::rank< T >::s_, mln::accu::stat::rank< T >::sum_minus_, mln::accu::stat::rank< T >::sum_plus_, mln::accu::stat::rank< T >::t_, and mln::accu::stat::rank< T >::valid_.
Referenced by mln::accu::stat::rank< bool >::rank(), mln::accu::stat::rank< T >::rank(), and mln::morpho::impl::generic::rank_filter().
| bool mln::accu::stat::rank< T >::is_valid | ( | ) | const  [inline] | 
Check whether this accu is able to return a result.
Always true here.
Definition at line 343 of file rank.hh.
References mln::accu::stat::rank< T >::valid_.
| unsigned mln::accu::stat::rank< T >::k | ( | ) | const  [inline] | 
| R base::subj_ | ( | ) |  [inline, inherited] | 
| void mln::accu::stat::rank< T >::take | ( | const rank< T > & | other | ) |  [inline] | 
| void mln::accu::stat::rank< T >::take | ( | const argument & | t | ) |  [inline] | 
Definition at line 185 of file rank.hh.
References mln::accu::stat::rank< T >::h_, mln::accu::stat::rank< T >::sum_minus_, mln::accu::stat::rank< T >::sum_plus_, mln::accu::stat::rank< T >::t_, mln::accu::histo< V >::take(), and mln::accu::stat::rank< T >::valid_.
Referenced by mln::morpho::impl::generic::rank_filter().
| 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::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().
| const T & mln::accu::stat::rank< T >::to_result | ( | ) | const  [inline] | 
Get the value of the accumulator.
Definition at line 333 of file rank.hh.
References mln::accu::stat::rank< T >::t_, mln::accu::stat::rank< T >::update_(), and mln::accu::stat::rank< T >::valid_.
| void mln::accu::stat::rank< T >::untake | ( | const rank< T > & | other | ) |  [inline] | 
Definition at line 239 of file rank.hh.
References mln::accu::stat::rank< T >::h_, mln::accu::stat::rank< T >::i_, mln::accu::histo< V >::nvalues(), mln::accu::stat::rank< T >::sum_minus_, mln::accu::stat::rank< T >::sum_plus_, mln::accu::histo< V >::untake(), and mln::accu::stat::rank< T >::valid_.
| void mln::accu::stat::rank< T >::untake | ( | const argument & | t | ) |  [inline] | 
Definition at line 222 of file rank.hh.
References mln::accu::stat::rank< T >::h_, mln::accu::stat::rank< T >::sum_minus_, mln::accu::stat::rank< T >::sum_plus_, mln::accu::stat::rank< T >::t_, mln::accu::histo< V >::untake(), and mln::accu::stat::rank< T >::valid_.
| void mln::accu::stat::rank< T >::update_ | ( | ) | const  [inline, protected] | 
Definition at line 259 of file rank.hh.
References mln::accu::stat::rank< T >::go_minus_(), mln::accu::stat::rank< T >::go_plus_(), mln::accu::stat::rank< T >::h_, mln::accu::stat::rank< T >::i_, mln::accu::stat::rank< T >::k_, mln::accu::histo< V >::sum(), mln::accu::stat::rank< T >::sum_minus_, mln::accu::stat::rank< T >::sum_plus_, and mln::accu::stat::rank< T >::valid_.
Referenced by mln::accu::stat::rank< T >::to_result().
| accu::histo<T> mln::accu::stat::rank< T >::h_  [mutable, protected] | 
Definition at line 93 of file rank.hh.
Referenced by mln::accu::stat::rank< T >::card(), mln::accu::stat::rank< T >::go_minus_(), mln::accu::stat::rank< T >::go_plus_(), mln::accu::stat::rank< T >::init(), mln::accu::stat::rank< T >::take(), mln::accu::stat::rank< T >::untake(), and mln::accu::stat::rank< T >::update_().
| unsigned mln::accu::stat::rank< T >::i_  [mutable, protected] | 
Definition at line 99 of file rank.hh.
Referenced by mln::accu::stat::rank< T >::go_minus_(), mln::accu::stat::rank< T >::go_plus_(), mln::accu::stat::rank< T >::init(), mln::accu::stat::rank< T >::take(), mln::accu::stat::rank< T >::untake(), and mln::accu::stat::rank< T >::update_().
| unsigned mln::accu::stat::rank< T >::k_  [protected] | 
Definition at line 91 of file rank.hh.
Referenced by mln::accu::stat::rank< T >::go_minus_(), mln::accu::stat::rank< T >::go_plus_(), mln::accu::stat::rank< T >::k(), mln::accu::stat::rank< bool >::to_result(), and mln::accu::stat::rank< T >::update_().
| const S& mln::accu::stat::rank< T >::s_  [protected] | 
Definition at line 94 of file rank.hh.
Referenced by mln::accu::stat::rank< T >::go_minus_(), mln::accu::stat::rank< T >::go_plus_(), and mln::accu::stat::rank< T >::init().
| unsigned mln::accu::stat::rank< T >::sum_minus_  [mutable, protected] | 
Definition at line 96 of file rank.hh.
Referenced by mln::accu::stat::rank< T >::go_minus_(), mln::accu::stat::rank< T >::go_plus_(), mln::accu::stat::rank< T >::init(), mln::accu::stat::rank< T >::take(), mln::accu::stat::rank< T >::untake(), and mln::accu::stat::rank< T >::update_().
| unsigned mln::accu::stat::rank< T >::sum_plus_  [mutable, protected] | 
Definition at line 96 of file rank.hh.
Referenced by mln::accu::stat::rank< T >::go_minus_(), mln::accu::stat::rank< T >::go_plus_(), mln::accu::stat::rank< T >::init(), mln::accu::stat::rank< T >::take(), mln::accu::stat::rank< T >::untake(), and mln::accu::stat::rank< T >::update_().
| argument mln::accu::stat::rank< T >::t_  [mutable, protected] | 
Definition at line 100 of file rank.hh.
Referenced by mln::accu::stat::rank< T >::go_minus_(), mln::accu::stat::rank< T >::go_plus_(), mln::accu::stat::rank< T >::init(), mln::accu::stat::rank< T >::take(), mln::accu::stat::rank< T >::to_result(), and mln::accu::stat::rank< T >::untake().
| bool mln::accu::stat::rank< T >::valid_  [mutable, protected] | 
Definition at line 98 of file rank.hh.
Referenced by mln::accu::stat::rank< T >::init(), mln::accu::stat::rank< T >::is_valid(), mln::accu::stat::rank< T >::take(), mln::accu::stat::rank< T >::to_result(), mln::accu::stat::rank< T >::untake(), and mln::accu::stat::rank< T >::update_().
 1.5.6
 1.5.6