#include <mahalanobis.hh>
Public Types | |
enum | { n = V::dim } |
typedef Function_v2v< void > | category |
typedef E | exact_t |
typedef algebra::vec< n, float > | mean_t |
typedef void | mutable_result |
typedef float | result |
Public Member Functions | |
mahalanobis (const algebra::mat< n, n, float > &var, const algebra::vec< n, float > &mean) | |
mean_t | mean () const |
float | operator() (const V &v) const |
Protected Attributes | |
algebra::vec< n, float > | mean_ |
algebra::mat< n, n, float > | var_1_ |
Definition at line 49 of file mahalanobis.hh.
typedef Function_v2v<void> mln::Function_v2v< E >::category [inherited] |
Reimplemented from mln::Function< E >.
Reimplemented in mln::Function_v2b< E >, mln::Function_v2b< f_box2d_t >, mln::Function_v2b< mln::fun::v2b::lnot< V > >, mln::Function_v2b< mln::fun::p2b::antilogy >, mln::Function_v2b< mln::fun::p2b::has< I > >, mln::Function_v2b< mln::fun::p2b::tautology >, mln::Function_v2b< keep_specific_colors >, mln::Function_v2b< my_box2d >, mln::Function_v2b< mln::topo::is_simple_cell< I > >, mln::Function_v2b< mln::world::inter_pixel::dim2::is_edge >, mln::Function_v2b< mln::world::inter_pixel::dim2::is_row_odd >, mln::Function_v2b< mln::world::inter_pixel::dim2::is_pixel >, mln::Function_v2b< mln::fun::v2b::threshold< V > >, mln::Function_v2b< mln::world::inter_pixel::is_separator >, mln::Function_v2b< mln::topo::is_n_face< N > >, mln::Function_v2b< not_to_remove >, mln::Function_v2b< mln::fun::p2b::chess >, mln::Function_v2b< f_box1d_t >, mln::Function_v2b< mln::world::inter_pixel::dim2::is_dot >, mln::Function_v2b< mln::fun::p2b::big_chess< B > >, mln::Function_v2b< mln::world::inter_pixel::is_pixel >, and mln::Function_v2b< f_box3d_t >.
Definition at line 93 of file function.hh.
typedef E mln::Object< E >::exact_t [inherited] |
typedef algebra::vec<n,float> mln::fun::stat::mahalanobis< V >::mean_t |
Definition at line 62 of file mahalanobis.hh.
typedef void mln::Function_v2v< E >::mutable_result [inherited] |
typedef float mln::fun::stat::mahalanobis< V >::result |
Definition at line 54 of file mahalanobis.hh.
anonymous enum |
mln::fun::stat::mahalanobis< V >::mahalanobis | ( | const algebra::mat< n, n, float > & | var, | |
const algebra::vec< n, float > & | mean | |||
) | [inline] |
Definition at line 76 of file mahalanobis.hh.
References mln::algebra::mat< n, m, T >::_1(), mln::fun::stat::mahalanobis< V >::mean_, and mln::fun::stat::mahalanobis< V >::var_1_.
mahalanobis< V >::mean_t mln::fun::stat::mahalanobis< V >::mean | ( | ) | const [inline] |
float mln::fun::stat::mahalanobis< V >::operator() | ( | const V & | v | ) | const [inline] |
Definition at line 86 of file mahalanobis.hh.
References mln::fun::stat::mahalanobis< V >::mean_, and mln::fun::stat::mahalanobis< V >::var_1_.
algebra::vec<n,float> mln::fun::stat::mahalanobis< V >::mean_ [protected] |
Definition at line 68 of file mahalanobis.hh.
Referenced by mln::fun::stat::mahalanobis< V >::mahalanobis(), mln::fun::stat::mahalanobis< V >::mean(), and mln::fun::stat::mahalanobis< V >::operator()().
algebra::mat<n,n,float> mln::fun::stat::mahalanobis< V >::var_1_ [protected] |
Definition at line 67 of file mahalanobis.hh.
Referenced by mln::fun::stat::mahalanobis< V >::mahalanobis(), and mln::fun::stat::mahalanobis< V >::operator()().