26 #ifndef MLN_ESTIM_MEAN_HH
27 # define MLN_ESTIM_MEAN_HH
33 # include <mln/accu/stat/mean.hh>
34 # include <mln/data/compute.hh>
49 mln_sum(mln_value(I))
mean(const Image<I>& input);
60 template <typename S, typename I, typename M>
61 void mean(const Image<I>& input, M& result);
64 # ifndef MLN_INCLUDE_ONLY
68 mln_sum(mln_value(I))
mean(const Image<I>& input)
70 mln_precondition(
exact(input).is_valid());
74 template <
typename S,
typename I,
typename M>
76 void mean(
const Image<I>& input, M& result)
78 mln_precondition(
exact(input).is_valid());
79 accu::stat::mean<mln_value(I), S, M> a;
83 # endif // ! MLN_INCLUDE_ONLY
90 #endif // ! MLN_ESTIM_MEAN_HH