npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
npstat::ArrayMedianProjector< T > Class Template Reference

#include <ArrayProjectors.hh>

Inheritance diagram for npstat::ArrayMedianProjector< T >:
npstat::AbsVisitor< T, T > npstat::ArrayRangeProjector< T >

Public Member Functions

void clear ()
 
void process (const T &value)
 
virtual T result ()
 

Protected Member Functions

medSorted (const T *array, unsigned long n)
 

Protected Attributes

std::vector< T > v_
 

Detailed Description

template<typename T>
class npstat::ArrayMedianProjector< T >

Median projector

Member Function Documentation

◆ clear()

template<typename T >
void npstat::ArrayMedianProjector< T >::clear ( )
inlinevirtual

Clear all accumulated results

Implements npstat::AbsVisitor< T, T >.

◆ process()

template<typename T >
void npstat::ArrayMedianProjector< T >::process ( const T &  value)
inlinevirtual

Process one array point

Implements npstat::AbsVisitor< T, T >.

◆ result()

template<typename T >
virtual T npstat::ArrayMedianProjector< T >::result ( )
virtual

Return the result at the end of array processing

Implements npstat::AbsVisitor< T, T >.

Reimplemented in npstat::ArrayRangeProjector< T >.


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