Public Types | Public Member Functions | Public Attributes | List of all members
gnsstk::FilterHit< T > Class Template Reference

Detailed Description

template<class T>
class gnsstk::FilterHit< T >

class FilterHit is used in stats to hold the filter results. The 'results' object used by the filters to indicate presence of 'events' : outlier(s), a slip or the beginning-of-data (BOD). Each filter's analyze() function returns a std::vector of one or more these objects; always with at least one element: the first is usually a BOD, but if there are outliers at the start, it can be type outlier. Calling the filter's getStats(FilterHit) will return statistics on the filter quantities (not the data) in the segment that begins at the event.

Definition at line 68 of file StatsFilterHit.hpp.

#include <StatsFilterHit.hpp>

Public Types

typedef enum gnsstk::FilterHit::EventType event
 enum used to indicate the kind of event in this result More...
 
enum  EventType { BOD = 0, outlier, slip, other }
 enum used to indicate the kind of event in this result More...
 

Public Member Functions

std::string analMsg () const
 return the analysis message More...
 
std::string asStatsString (const int osp=3) const
 
std::string asString (const int osp=3) const
 return as a single string with just type, index and npts More...
 
std::string asStringRead (const int osp=3) const
 
 FilterHit ()
 empty and only constructor More...
 
bool isBOD ()
 return true if this is BOD More...
 
bool isOutlier ()
 return true if this is outlier More...
 
bool isSlip ()
 return true if this is slip More...
 

Public Attributes

dx
 step in xdata: before SLIP or after OUT More...
 
bool haveStats
 set true when getStats() is called More...
 
unsigned int index
 index in the data array(s) at which this event occurs More...
 
mad
 robust stats on the filter quantities (not data) More...
 
max
 
med
 
min
 
std::string msg
 message from analysis More...
 
unsigned int ngood
 number of good (flag==0) points in this segment More...
 
unsigned int npts
 number data points in segment (= a delta index) More...
 
unsigned int score
 weight of slip (=100) More...
 
sigma
 for a slip, RSS future and past sigma on the data More...
 
step
 for a slip, an estimate of the step in the data More...
 
event type
 type of event: BOD, outlier(s), slip, other More...
 

Member Typedef Documentation

◆ event

template<class T >
typedef enum gnsstk::FilterHit::EventType gnsstk::FilterHit< T >::event

enum used to indicate the kind of event in this result

Member Enumeration Documentation

◆ EventType

template<class T >
enum gnsstk::FilterHit::EventType

enum used to indicate the kind of event in this result

Enumerator
BOD 

beginning of data

outlier 

outlier(s) - npts is the number of outliers

slip 

slip (discontinuity)

other 

never used?

Definition at line 72 of file StatsFilterHit.hpp.

Constructor & Destructor Documentation

◆ FilterHit()

template<class T >
gnsstk::FilterHit< T >::FilterHit ( )
inline

empty and only constructor

Definition at line 81 of file StatsFilterHit.hpp.

Member Function Documentation

◆ analMsg()

template<class T >
std::string gnsstk::FilterHit< T >::analMsg ( ) const
inline

return the analysis message

Definition at line 118 of file StatsFilterHit.hpp.

◆ asStatsString()

template<class T >
std::string gnsstk::FilterHit< T >::asStatsString ( const int  osp = 3) const
inline

return as a longer single string containing asString() plus stats

Parameters
ospprecision for fixed format

Definition at line 197 of file StatsFilterHit.hpp.

◆ asString()

template<class T >
std::string gnsstk::FilterHit< T >::asString ( const int  osp = 3) const
inline

return as a single string with just type, index and npts

Definition at line 121 of file StatsFilterHit.hpp.

◆ asStringRead()

template<class T >
std::string gnsstk::FilterHit< T >::asStringRead ( const int  osp = 3) const
inline

return as a single human-readable string giving all the relevant info

Parameters
ospprecision for fixed format

Definition at line 163 of file StatsFilterHit.hpp.

◆ isBOD()

template<class T >
bool gnsstk::FilterHit< T >::isBOD ( )
inline

return true if this is BOD

Definition at line 109 of file StatsFilterHit.hpp.

◆ isOutlier()

template<class T >
bool gnsstk::FilterHit< T >::isOutlier ( )
inline

return true if this is outlier

Definition at line 112 of file StatsFilterHit.hpp.

◆ isSlip()

template<class T >
bool gnsstk::FilterHit< T >::isSlip ( )
inline

return true if this is slip

Definition at line 115 of file StatsFilterHit.hpp.

Member Data Documentation

◆ dx

template<class T >
T gnsstk::FilterHit< T >::dx

step in xdata: before SLIP or after OUT

Definition at line 100 of file StatsFilterHit.hpp.

◆ haveStats

template<class T >
bool gnsstk::FilterHit< T >::haveStats

set true when getStats() is called

Definition at line 102 of file StatsFilterHit.hpp.

◆ index

template<class T >
unsigned int gnsstk::FilterHit< T >::index

index in the data array(s) at which this event occurs

Definition at line 91 of file StatsFilterHit.hpp.

◆ mad

template<class T >
T gnsstk::FilterHit< T >::mad

robust stats on the filter quantities (not data)

Definition at line 104 of file StatsFilterHit.hpp.

◆ max

template<class T >
T gnsstk::FilterHit< T >::max

Definition at line 104 of file StatsFilterHit.hpp.

◆ med

template<class T >
T gnsstk::FilterHit< T >::med

Definition at line 104 of file StatsFilterHit.hpp.

◆ min

template<class T >
T gnsstk::FilterHit< T >::min

Definition at line 104 of file StatsFilterHit.hpp.

◆ msg

template<class T >
std::string gnsstk::FilterHit< T >::msg

message from analysis

Definition at line 106 of file StatsFilterHit.hpp.

◆ ngood

template<class T >
unsigned int gnsstk::FilterHit< T >::ngood

number of good (flag==0) points in this segment

Definition at line 94 of file StatsFilterHit.hpp.

◆ npts

template<class T >
unsigned int gnsstk::FilterHit< T >::npts

number data points in segment (= a delta index)

Definition at line 93 of file StatsFilterHit.hpp.

◆ score

template<class T >
unsigned int gnsstk::FilterHit< T >::score

weight of slip (=100)

Definition at line 96 of file StatsFilterHit.hpp.

◆ sigma

template<class T >
T gnsstk::FilterHit< T >::sigma

for a slip, RSS future and past sigma on the data

Definition at line 99 of file StatsFilterHit.hpp.

◆ step

template<class T >
T gnsstk::FilterHit< T >::step

for a slip, an estimate of the step in the data

Definition at line 98 of file StatsFilterHit.hpp.

◆ type

template<class T >
event gnsstk::FilterHit< T >::type

type of event: BOD, outlier(s), slip, other

Definition at line 88 of file StatsFilterHit.hpp.


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


gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:44