42 std::size_t nLags = matrix.size1();
45 boost::numeric::ublas::matrix<double> m(nLags, 2);
48 std::vector<double> exponentialValues;
50 for(std::size_t t= 0; t < nLags; ++t)
52 if(matrix(t, 0) == 0.)
54 exponentialValues.push_back(
m_nugget);
61 m(t, 0) = matrix(t, 0);
62 m(t, 1) = exponentialValues[t];
double m_nugget
The height of the jump of the semivariogram at the discontinuity at the origin.
double m_sill
Limit of the variogram tending to infinity lag distances.
virtual boost::numeric::ublas::matrix< double > calculate(boost::numeric::ublas::matrix< double > matrix)
Function to calculate the geostatistical information from model.
virtual ~GeostatisticalModelExponential()
Virtual destructor.
GeostatisticalModelExponential()
Default constructor.
This file contains a class that represents the geostatistical exponential model.
te::sa::GeostatisticalModelType m_type
Attribute used to define the model type used.
double m_range
The distance in which the difference of the variogram from the sill becomes negligible.