Public Types | Public Member Functions | Public Attributes | Protected Attributes | List of all members
o2scl::interpm_krige_nn< vec_t, mat_t > Class Template Reference

Multi-dimensional interpolation by kriging with nearest-neighbor. More...

#include <interpm_krige.h>

Inheritance diagram for o2scl::interpm_krige_nn< vec_t, mat_t >:
o2scl::interpm_krige< boost::numeric::ublas::vector< double >, boost::numeric::ublas::vector< double > >

Detailed Description

template<class vec_t = boost::numeric::ublas::vector<double>, class mat_t = boost::numeric::ublas::vector<double>>
class o2scl::interpm_krige_nn< vec_t, mat_t >

Note
This class assumes that the function specified in the call to set_data() is the same as that passed to the eval() functions. If this is not the case, the behavior of this class is undefined.
Experimental.

Definition at line 959 of file interpm_krige.h.

Public Types

typedef boost::numeric::ublas::vector< double > ubvector
 
typedef boost::numeric::ublas::matrix< double > ubmatrix
 
typedef boost::numeric::ublas::vector< size_t > ubvector_size_t
 
- Public Types inherited from o2scl::interpm_krige< boost::numeric::ublas::vector< double >, boost::numeric::ublas::vector< double > >
typedef boost::numeric::ublas::vector< double > ubvector
 
typedef boost::numeric::ublas::matrix< double > ubmatrix
 
typedef boost::numeric::ublas::vector< size_t > ubvector_size_t
 
typedef boost::numeric::ublas::matrix_column< ubmatrixubmatrix_column
 
typedef boost::numeric::ublas::matrix_row< ubmatrixubmatrix_row
 

Public Member Functions

template<class mat2_t , class vec_func_t >
void set_data (size_t n_in, size_t n_out, size_t n_points, mat_t &user_x, mat_t &user_y, vec_func_t &fcovar, size_t order)
 Initialize the data for the interpolation.
 
template<class vec2_t , class vec3_t , class vec_func_t >
void eval (const vec2_t &x0, vec3_t &y0, vec_func_t &fcovar) const
 Given covariance function fcovar and input vector x store the result of the interpolation in y.
 
template<class vec2_t , class vec_func_t >
void find_lin_indep (const vec2_t &x2, size_t iout, vec_func_t &fcovar, ubvector_size_t &index, ubvector_size_t &indep) const
 Find a set of linearly independent points. More...
 
template<class vec2_t , class vec_func_t >
double eval (const vec2_t &x2, size_t iout, vec_func_t &fcovar) const
 Given covariance function fcovar and input vector x return the result of the interpolation for function with index iout.
 
template<class vec2_t , class func_vec_t >
double eval_jackknife (const vec2_t &x2, size_t iout, func_vec_t &fcovar) const
 Compute a quality factor for interpolation using jackknife resampling.
 
- Public Member Functions inherited from o2scl::interpm_krige< boost::numeric::ublas::vector< double >, boost::numeric::ublas::vector< double > >
int set_data_noise (size_t n_in, size_t n_out, size_t n_points, boost::numeric::ublas::vector< double > &user_x, mat2_t &user_y, func_vec_t &fcovar, const boost::numeric::ublas::vector< double > &noise_var, bool rescale=false, bool err_on_fail=true)
 Initialize the data for the interpolation. More...
 
int set_data (size_t n_in, size_t n_out, size_t n_points, boost::numeric::ublas::vector< double > &user_x, mat2_t &user_y, func_vec_t &fcovar, bool rescale=false, bool err_on_fail=true)
 Initialize the data for the interpolation. More...
 
void eval (const vec2_t &x0, vec3_t &y0, vec_func_t &fcovar)
 Given covariance function fcovar and input vector x store the result of the interpolation in y.
 

Public Attributes

int verbose
 Verbosity parameter (default 0)
 
- Public Attributes inherited from o2scl::interpm_krige< boost::numeric::ublas::vector< double >, boost::numeric::ublas::vector< double > >
size_t matrix_mode
 Method for matrix inversion.
 
int verbose
 Verbosity parameter (default 0)
 

Protected Attributes

size_t n_order
 The order of the interpolation (specified by set_data() )
 
size_t np
 The number of points.
 
size_t nd_in
 The number of dimensions of the inputs.
 
size_t nd_out
 The number of dimensions of the outputs.
 
std::vector< vec_t > x
 A vector of pointers holding the data.
 
std::vector< vec_t > y
 A vector of pointers holding the data.
 
bool data_set
 True if the data has been specified.
 
- Protected Attributes inherited from o2scl::interpm_krige< boost::numeric::ublas::vector< double >, boost::numeric::ublas::vector< double > >
std::vector< ubvectorKinvf
 Inverse covariance matrix times function vector.
 
size_t np
 The number of points.
 
size_t nd_in
 The number of dimensions of the inputs.
 
size_t nd_out
 The number of dimensions of the outputs.
 
boost::numeric::ublas::vector< double > x
 The data.
 
bool data_set
 True if the data has been specified.
 
ubvector min
 Minimum values for rescaling.
 
ubvector max
 Maximum values for rescaling.
 
bool rescaled
 True if the data needs to be rescaled.
 

Additional Inherited Members

- Static Public Attributes inherited from o2scl::interpm_krige< boost::numeric::ublas::vector< double >, boost::numeric::ublas::vector< double > >
static const size_t matrix_cholesky
 Use Cholesky decomposition.
 
static const size_t matrix_LU
 Use LU decomposition.
 

Member Function Documentation

◆ find_lin_indep()

template<class vec_t = boost::numeric::ublas::vector<double>, class mat_t = boost::numeric::ublas::vector<double>>
template<class vec2_t , class vec_func_t >
void o2scl::interpm_krige_nn< vec_t, mat_t >::find_lin_indep ( const vec2_t &  x2,
size_t  iout,
vec_func_t &  fcovar,
ubvector_size_t index,
ubvector_size_t indep 
) const
inline

Given a point x, a covariance function fcovar, the index of the output function iout, and an array specifying the closest points index, this function produces a list of

Definition at line 1105 of file interpm_krige.h.


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

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).