Class interpm_krige_nn (o2scl)¶
-
template<class
vec_t
= boost::numeric::ublas::vector<double>, classmat_t
= boost::numeric::ublas::vector<double>>
classo2scl
::
interpm_krige_nn
: public o2scl::interpm_krige<boost::numeric::ublas::vector<double>, boost::numeric::ublas::vector<double>>¶ Multi-dimensional interpolation by kriging with nearest-neighbor.
- 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.
- Note
Experimental.
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 Functions
-
interpm_krige_nn
()¶
-
template<class
mat2_t
, classvec_func_t
>
voidset_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
, classvec3_t
, classvec_func_t
>
voideval
(const vec2_t &x0, vec3_t &y0, vec_func_t &fcovar) const¶ Given covariance function
fcovar
and input vectorx
store the result of the interpolation iny
.
-
template<class
vec2_t
, classvec_func_t
>
voidfind_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.
Given a point
x
, a covariance functionfcovar
, the index of the output functioniout
, and an array specifying the closest pointsindex
, this function produces a list of
-
template<class
vec2_t
, classvec_func_t
>
doubleeval
(const vec2_t &x2, size_t iout, vec_func_t &fcovar) const¶ Given covariance function
fcovar
and input vectorx
return the result of the interpolation for function with indexiout
.
-
template<class
vec2_t
, classfunc_vec_t
>
doubleeval_jackknife
(const vec2_t &x2, size_t iout, func_vec_t &fcovar) const¶ Compute a quality factor for interpolation using jackknife resampling.
Public Members
-
int
verbose
¶ Verbosity parameter (default 0)