FMedianMAD Struct Reference

Functor to be called by mia::filter to evaluate median and median average distance (MAD) of a series of data. More...

#include <mia/core/statistics.hh>

Inheritance diagram for FMedianMAD:
[legend]
Collaboration diagram for FMedianMAD:
[legend]

Public Types

typedef TFilter< std::pair< double, double > >::result_type result_type
 
- Public Types inherited from TFilter< std::pair< double, double > >
typedef std::pair< double, double > result_type
 defines the return type of the filter function More...
 

Public Member Functions

template<typename T >
result_type operator() (const T &data) const
 

Detailed Description

Functor to be called by mia::filter to evaluate median and median average distance (MAD) of a series of data.

Definition at line 60 of file statistics.hh.

Member Typedef Documentation

◆ result_type

typedef TFilter< std::pair<double, double> >::result_type FMedianMAD::result_type

result type of this functor

  • first = median
  • second = MAD

Definition at line 66 of file statistics.hh.

Member Function Documentation

◆ operator()()

template<typename T >
FMedianMAD::result_type FMedianMAD::operator() ( const T &  data) const
Template Parameters
Tcontainer type T holding the data to be analyzed. Must provide the methods begin() and end() returning a forward_iterator;
Parameters
datathe data to be anlyzed
Returns
a std::pair first=median, second=MAD

Definition at line 104 of file statistics.hh.

References fabs(), and NS_MIA_END.


The documentation for this struct was generated from the following file: