Gridpp 0.8.0
A post-processing library for gridded weather forecasts
Public Member Functions | List of all members
gridpp::CrossValidation Class Reference

#include <gridpp.h>

Inheritance diagram for gridpp::CrossValidation:
gridpp::StructureFunction

Public Member Functions

StructureFunctionPtr clone () const
 
float corr (const Point &p1, const Point &p2) const
 Correlation between two points. More...
 
float corr_background (const Point &p1, const Point &p2) const
 Correlation between a background point and an observation points. More...
 
vec corr_background (const Point &p1, const std::vector< Point > &p2) const
 
 CrossValidation (StructureFunction &structure, float dist)
 Structure function for performing cross validation experiments. More...
 
float localization_distance (const Point &p) const
 Maximum distance for which an observation can have an impact (localization) More...
 
- Public Member Functions inherited from gridpp::StructureFunction
virtual vec corr (const Point &p1, const std::vector< Point > &p2) const
 
 StructureFunction (float localization_distance=0)
 

Additional Inherited Members

- Static Public Attributes inherited from gridpp::StructureFunction
static const float default_min_rho = 0.0013
 
- Protected Member Functions inherited from gridpp::StructureFunction
float barnes_rho (float dist, float length) const
 Barnes correlation function. More...
 
float cressman_rho (float dist, float length) const
 Cressman correlation function. More...
 
float linear_rho (float diff, float min_corr) const
 Linear correlation function. More...
 
float powerlaw_rho (float dist, float length) const
 Powerlaw correlation function. More...
 
float soar_rho (float dist, float length) const
 Compactly supported second-order autoregressive correlation function. More...
 
float toar_rho (float dist, float length) const
 Compactly supported third-order autoregressive correlation function. More...
 
- Protected Attributes inherited from gridpp::StructureFunction
float m_localization_distance
 

Constructor & Destructor Documentation

◆ CrossValidation()

gridpp::CrossValidation::CrossValidation ( StructureFunction &  structure,
float  dist 
)

Structure function for performing cross validation experiments.

End Linear.

Parameters
structureBase structure function to use
distForce background-to-obs correlation to 0 for points within this distance [m]

CrossValidation

Member Function Documentation

◆ clone()

gridpp::StructureFunctionPtr gridpp::CrossValidation::clone ( ) const
virtual

◆ corr()

float gridpp::CrossValidation::corr ( const Point &  p1,
const Point &  p2 
) const
virtual

Correlation between two points.

Parameters
p1First point
p2Other point
Returns
Correlation between points

Implements gridpp::StructureFunction.

◆ corr_background() [1/2]

float gridpp::CrossValidation::corr_background ( const Point &  p1,
const Point &  p2 
) const
virtual

Correlation between a background point and an observation points.

Parameters
p1Background point
p2Observation point
Returns
Correlation between background and observation points

Reimplemented from gridpp::StructureFunction.

◆ corr_background() [2/2]

vec gridpp::CrossValidation::corr_background ( const Point &  p1,
const std::vector< Point > &  p2 
) const
virtual

Reimplemented from gridpp::StructureFunction.

◆ localization_distance()

float gridpp::CrossValidation::localization_distance ( const Point &  p) const
virtual

Maximum distance for which an observation can have an impact (localization)

Returns
Distance [m]

Reimplemented from gridpp::StructureFunction.


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