Library verification_docs


[ Keywords | Classes | Data | Functions ]

Quick Index



Classes

Area
A class that stores the data for a particular area.
Basins
Concrete subclass of DataFormatter. Formats grids into basins.
DataComparisonException
A class used for defining data comparison exceptions.
DataFormatter
An abstract class whose children format grid data in different ways.
Date
Simple date class.
DbInterface
A class that acts an interface to a database.
Debug
A base class used for debugging routines.
ExternalException
A class used for defining external exceptions.
FileException
A class used for defining file exceptions.
Forecast
A class that represents a PQPF
ForecastHandler
Class that handles Forecast s.
FractileVerification
Exceedance fractile verification class.
FractionVerification
Base verification class.
GenericException
A base class used for defining exceptions.
Grid
A class that stores the data from an xmrg data grid.
GridDataDateEqual
Predicate class for Observations
GridDataHandler
Class that handles GridData.
ImplementationException
A class used for defining implementation exceptions.
InvalidDataException
A class used for defining expected data exceptions.
MissingDataException
A class used for defining missing data exceptions.
MultipleTestCase
Concrete subclass of DataFormatter that extracts points from a grid.
NestedSquares
Implements the a nested squares format.
NestedSquares2
Implents a different nested squares approach.
NominalSquare
Implents a Square with sides of 18.
Observation
Calculates the observational value for an Area.
ObservationDateEqual
Predicate class for Observations
ObservationHandler
Class that handles Observation s.
Points
Concrete subclass of DataFormatter that extracts points from a grid.
PopIncGammaInt
Used by riemann function to calculate the integral needed for calculating the incomplete gamma function.
PopIntegral
Used by riemann function to calculate the integral needed for POP Calibration.
PopRSIntegral
Used by riemann function to calculate the integral needed for POP Refinement Score.
PopVerification
Base verification class.
Rows
Concrete subclass of DataFormatter that formats grids in rows.
SingleTestCase
Concrete subclass of DataFormatter that extracts points from a grid.
Square
Concrete subclass of DataFormatter that formats Grid into square Area s.
Verification
Virtual base class for verification objects.

Data

const float constantC = 0.6931471806;
const float constantA = 0.471233627;
const float constantB = 0.528766373;
const int fullForecast = 6864;
const int pittForecast = 3263;
const int fullObservation = 45825;
const int maxNumAreas = 45825;
typedef enum GridType;
typedef enum DataType;
typedef enum StartTime;
typedef enum DebugLevel;
typedef enum ObservationSubPeriods;
typedef enum ShowStyle;

Global Functions

void generate(const ForecastHandler& fh, const ObservationHandler& oh, const Date& beginDate, const Date& endDate);
template<class T> double riemann( const float& begin, const float& end, const T& t, const int& deltas ) ;
template <class T> string ztos(const T& t, const int& numDigits, const int& num ) ;
template<class T> string tos(const T& _t, const int& num ) ;

void generate(const ForecastHandler& fh, const ObservationHandler& oh, const Date& beginDate, const Date& endDate);

#include "Generate.h"

A function generally used my main() that will take handlers and dates and call all of the necessary verification stuff.

void generate(const ForecastHandler& fh,
             const ObservationHandler& oh,
             const Date& beginDate,
             const Date& endDate);

template<class T> double riemann( const float& begin, const float& end, const T& t, const int& deltas ) ;

#include "Riemann.h"

This template function calculates the Riemann summation (integral estimation) for an arbitrary function over an arbitrary range (with the exception of handling infinity) for an arbitrary degree of precision (you're only limited by time!). The function takes a predicate class T as an argument and type for the class. The operator() for T is called by riemann and is the function that is being integrated. Also specified in the arguments is the range over which the integration occurs and the number of slices in which to divide the range (deltas).

template<class T>
double riemann( const float& begin, 
			    const float& end, 
			    const T& t, 
			    const int& deltas )
         ;

template <class T> string ztos(const T& t, const int& numDigits, const int& num ) ;

#include "Tostring.h"

ztos - zero padded T to string - useful for ints, floats, etc.

template <class T>
string ztos(const T& t, const int& numDigits, const int& num=3 )
                                                                   ;

template<class T> string tos(const T& _t, const int& num ) ;

#include "Tostring.h"

Type T to string.

Originally from Gustavo Niemeyer but modified by me. This code was found on sourceforge.net in the C++ snippets section.

template<class T>
string tos(const T& _t, const int& num=2)
                                                                   ;

Function is currently defined inline.


const float constantC = 0.6931471806;

#include "VerifyConstants.h"

ln(-ln(0.25)) - ln(-ln(0.50))

const float constantC = 0.6931471806;

const float constantA = 0.471233627;

#include "VerifyConstants.h"

(ln(-ln(0.25)))/constantC

const float constantA = 0.471233627;

const float constantB = 0.528766373;

#include "VerifyConstants.h"

(-ln(-ln(0.50)))/constantC

const float constantB = 0.528766373;

const int fullForecast = 6864;

#include "VerifyConstants.h"

Number of points in Full (both Pittsburgh and Charleston WFOs) forecast.

const int fullForecast = 6864;

const int pittForecast = 3263;

#include "VerifyConstants.h"

Number of points in Pittsburgh WFO forecast.

const int pittForecast = 3263;

const int fullObservation = 45825;

#include "VerifyConstants.h"

Number of points in a full Observation.

const int fullObservation = 45825;

const int maxNumAreas = 45825;

#include "VerifyConstants.h"

Maximum possible number of areas, which is 1 point per area (for a full observation).

const int maxNumAreas = 45825;

typedef enum GridType;

#include "VerifyEnum.h"

Enum of the various types of grids.

typedef enum 
{
	NO_GRID_TYPE = 0,
	HPC,
	WFO,
	MOS,
	OBS
} GridType;

typedef enum DataType;

#include "VerifyEnum.h"

Enum of the various types of data that may appear in grids.

typedef enum
{
	NO_DATA_TYPE = 0,
	POP,
	X50,
	X25,
	Z1,
	Z2,
	Z3,
	M_VALUE,
	W1,
	W2,
	W3,
	W4,
	TOTAL
} DataType;

typedef enum StartTime;

#include "VerifyEnum.h"

Enum for the different times that forecast periods may start.

typedef enum
{
	NO_START_TIME = 0,
	MIDNIGHT,
	NOON
} StartTime;

typedef enum DebugLevel;

#include "VerifyEnum.h"

Enum for different debug levels to be specified.

typedef enum
{
	NO_DEBUG = 0,
	LOW_DEBUG,
	MEDIUM_DEBUG,
	HIGH_DEBUG,
	MAX_DEBUG  // maximum allowable debug setting
} DebugLevel;

typedef enum ObservationSubPeriods;

#include "VerifyEnum.h"

Enum for Observation sub periods

typedef enum
{
	DAY_SUB1 = 0,
	DAY_SUB2,
	DAY_SUB3,
	DAY_SUB4,
	DAY_TOTAL
} ObservationSubPeriods;

typedef enum ShowStyle;

#include "VerifyEnum.h"

Enum for Observation sub periods

typedef enum
{
	HUMAN = 0,
	COMPUTER
} ShowStyle;

Generated from source by the Cocoon utilities on Wed Aug 30 12:53:27 2000 .

Report problems to jkotula@stratasys.com