w2qcref::BlobTextureStatistics Class Reference

Inheritance diagram for w2qcref::BlobTextureStatistics:

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

Public Types

 SPIN_INDEX = NUM_LOCAL_STATISTICS
 INFLECTION_0_INDEX
 NUM_BLOBTEXTURE_STATISTICS
enum  BlobTextureStatisticIndex { SPIN_INDEX = NUM_LOCAL_STATISTICS, INFLECTION_0_INDEX, NUM_BLOBTEXTURE_STATISTICS }
 Index of the appropriate variable in the NN input array. More...
 MEAN_INDEX = NUM_BASIC_STATISTICS
 STDEV_INDEX
 DIFF_INDEX
 how much this value differs from the mean.
 MIN_STDEV_INDEX
 NUM_LOCAL_STATISTICS
enum  LocalStatisticIndex {
  MEAN_INDEX = NUM_BASIC_STATISTICS, STDEV_INDEX, DIFF_INDEX, MIN_STDEV_INDEX,
  NUM_LOCAL_STATISTICS
}
 Index of the appropriate variable in the NN input array. More...
 DATA_INDEX
 NUM_BASIC_STATISTICS
enum  BASIC_STATISTICS { DATA_INDEX, NUM_BASIC_STATISTICS }

Public Member Functions

 BlobTextureStatistics (const std::string &inputType, int elev)
virtual size_t size () const
 number of statistics.
virtual ~BlobTextureStatistics ()
void compute (const code::PolarGrid &value, const code::Length &targetGateWidth, int targetNumGates)
 compute, and store, statistics from this polar grid.
void fillNNInput (std::vector< code::Image< float > > *params)
 copy the stored statistics into the passed-in vector.
void setHalfSize (int newsize)
 Change the half-size from 2 (a 5x5) kernel.
const code::Image< float > & origData () const
bool isKnown (int x, int y) const
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.

Public Attributes

int SPIN_SIZEX
int SPIN_SIZEY

Protected Attributes

code::Image< float > mean
code::Image< float > stdev
code::Image< float > diff
code::Image< float > min_stdev
int HALF_SIZE
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 [inherited]

Enumerator:
DATA_INDEX 
NUM_BASIC_STATISTICS 

enum w2qcref::BlobTextureStatistics::BlobTextureStatisticIndex

Index of the appropriate variable in the NN input array.

Enumerator:
SPIN_INDEX 
INFLECTION_0_INDEX 
NUM_BLOBTEXTURE_STATISTICS 

enum w2qcref::LocalStatistics::LocalStatisticIndex [inherited]

Index of the appropriate variable in the NN input array.

Enumerator:
MEAN_INDEX 
STDEV_INDEX 
DIFF_INDEX  how much this value differs from the mean.
MIN_STDEV_INDEX 
NUM_LOCAL_STATISTICS 


Constructor & Destructor Documentation

w2qcref::BlobTextureStatistics::BlobTextureStatistics ( const std::string &  inputType,
int  elev 
)

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


Member Function Documentation

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

compute, and store, statistics from this polar grid.

Reimplemented from w2qcref::LocalStatistics.

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

copy the stored statistics into the passed-in vector.

Reimplemented from w2qcref::LocalStatistics.

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, inherited]

const code::Image<float>& w2qcref::LocalStatistics::origData (  )  const [inline, inherited]

void w2qcref::LocalStatistics::setHalfSize ( int  newsize  )  [inline, inherited]

Change the half-size from 2 (a 5x5) kernel.

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

by default, the sign is important.

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

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

number of statistics.

Reimplemented from w2qcref::LocalStatistics.


Member Data Documentation

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

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.

code::Image<float> w2qcref::LocalStatistics::diff [protected, inherited]

int w2qcref::LocalStatistics::HALF_SIZE [protected, inherited]

code::Image<float> w2qcref::LocalStatistics::mean [protected, inherited]

code::Image<float> w2qcref::LocalStatistics::min_stdev [protected, inherited]

bool w2qcref::BasicStatistics::signImportant [protected, inherited]

int w2qcref::BlobTextureStatistics::SPIN_SIZEX

int w2qcref::BlobTextureStatistics::SPIN_SIZEY

code::Image<float> w2qcref::LocalStatistics::stdev [protected, inherited]

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


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