Public Types | Public Member Functions | Protected Attributes

mln::fun::stat::mahalanobis< V > Struct Template Reference

#include <mahalanobis.hh>

Inheritance diagram for mln::fun::stat::mahalanobis< V >:
Inheritance graph

List of all members.

Public Types

enum  { n = V::dim }
typedef Function_v2v< void > category
typedef mahalanobis< V > 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_

Detailed Description

template<typename V>
struct mln::fun::stat::mahalanobis< V >

Definition at line 49 of file mahalanobis.hh.


Member Typedef Documentation

typedef Function_v2v<void> mln::Function_v2v< mahalanobis< V > >::category [inherited]

Reimplemented from mln::Function< mahalanobis< V > >.

Definition at line 126 of file function.hh.

typedef mahalanobis< V > mln::Object< mahalanobis< V > >::exact_t [inherited]

Definition at line 173 of file object.hh.

template<typename V>
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< mahalanobis< V > >::mutable_result [inherited]

Definition at line 127 of file function.hh.

template<typename V>
typedef float mln::fun::stat::mahalanobis< V >::result

Definition at line 54 of file mahalanobis.hh.


Member Enumeration Documentation

template<typename V>
anonymous enum
Enumerator:
n 

Definition at line 53 of file mahalanobis.hh.


Constructor & Destructor Documentation

template<typename V >
mln::fun::stat::mahalanobis< V >::mahalanobis ( const algebra::mat< n, n, float > &  var,
const algebra::vec< n, float > &  mean 
) [inline]

Member Function Documentation

template<typename V >
mahalanobis< V >::mean_t mln::fun::stat::mahalanobis< V >::mean (  )  const [inline]

Definition at line 94 of file mahalanobis.hh.

References mln::fun::stat::mahalanobis< V >::mean_.

template<typename V>
float mln::fun::stat::mahalanobis< V >::operator() ( const V &  v  )  const [inline]

Member Data Documentation

template<typename V>
algebra::vec<n,float> mln::fun::stat::mahalanobis< V >::mean_ [protected]
template<typename V>
algebra::mat<n,n,float> mln::fun::stat::mahalanobis< V >::var_1_ [protected]