w2qcref::BasicStatistics Class Reference

Inheritance diagram for w2qcref::BasicStatistics:

w2qcref::Statistics w2qcref::LocalStatistics w2qcref::BlobTextureStatistics List of all members.

Public Types

 DATA_INDEX
 NUM_BASIC_STATISTICS
enum  BASIC_STATISTICS { DATA_INDEX, NUM_BASIC_STATISTICS }

Public Member Functions

bool isKnown (int x, int y) const
virtual void fillNNInput (std::vector< code::Image< float > > *params)
 copy the stored statistics into the passed-in vector.
virtual void compute (const code::PolarGrid &value, const code::Length &targetGateWidth, int targetNumGates)
 compute, and store, statistics from this polar grid.
virtual size_t size () const
 number of statistics.
virtual ~BasicStatistics ()
 BasicStatistics (const std::string &inputType, int elev)
void setSignImportant (bool flag)
 by default, the sign is important.
const std::string & getInputType () const
int getElevation () const

Static Public Member Functions

static int SIGN (float v)
static int getGateIncrement (const code::Length &inGateWidth, const code::Length &targetGateWidth)
 Number of gates we have to skip to get the targetGateWidth.

Protected Attributes

code::Image< int > valueKnown
code::Image< float > dataValue
 WARNING! The dataValue will be fabs(actual) if the sign is not important (such as in velocity fields) -- so, don't use this value in computing mean, etc.
bool signImportant

Member Enumeration Documentation

enum w2qcref::BasicStatistics::BASIC_STATISTICS

Enumerator:
DATA_INDEX 
NUM_BASIC_STATISTICS 


Constructor & Destructor Documentation

virtual w2qcref::BasicStatistics::~BasicStatistics (  )  [inline, virtual]

w2qcref::BasicStatistics::BasicStatistics ( const std::string &  inputType,
int  elev 
) [inline]


Member Function Documentation

virtual void w2qcref::BasicStatistics::compute ( const code::PolarGrid &  value,
const code::Length &  targetGateWidth,
int  targetNumGates 
) [virtual]

compute, and store, statistics from this polar grid.

Implements w2qcref::Statistics.

Reimplemented in w2qcref::LocalStatistics, and w2qcref::BlobTextureStatistics.

virtual void w2qcref::BasicStatistics::fillNNInput ( std::vector< code::Image< float > > *  params  )  [virtual]

copy the stored statistics into the passed-in vector.

Implements w2qcref::Statistics.

Reimplemented in w2qcref::LocalStatistics, and w2qcref::BlobTextureStatistics.

int w2qcref::Statistics::getElevation (  )  const [inline, inherited]

static int w2qcref::Statistics::getGateIncrement ( const code::Length &  inGateWidth,
const code::Length &  targetGateWidth 
) [static, inherited]

Number of gates we have to skip to get the targetGateWidth.

For example, if the input grid has a resolution of 0.25km, but the target is 1km, the gate increment is 4.

const std::string& w2qcref::Statistics::getInputType (  )  const [inline, inherited]

bool w2qcref::BasicStatistics::isKnown ( int  x,
int  y 
) const [inline]

void w2qcref::BasicStatistics::setSignImportant ( bool  flag  )  [inline]

by default, the sign is important.

static int w2qcref::Statistics::SIGN ( float  v  )  [inline, static, inherited]

virtual size_t w2qcref::BasicStatistics::size (  )  const [inline, virtual]

number of statistics.

Implements w2qcref::Statistics.

Reimplemented in w2qcref::LocalStatistics, and w2qcref::BlobTextureStatistics.


Member Data Documentation

code::Image<float> w2qcref::BasicStatistics::dataValue [protected]

WARNING! The dataValue will be fabs(actual) if the sign is not important (such as in velocity fields) -- so, don't use this value in computing mean, etc.

bool w2qcref::BasicStatistics::signImportant [protected]

code::Image<int> w2qcref::BasicStatistics::valueKnown [protected]


Generated on Fri May 4 13:40:25 2012 for WDSS-IIw2algs by  doxygen 1.4.7