vspline 1.1.0
Generic C++11 Code for Uniform B-Splines
Classes | Namespaces
extrapolate.h File Reference

extrapolation of 1D data sets with specific boundary conditions More...

#include "common.h"

Go to the source code of this file.

Classes

struct  vspline::extrapolator< buffer_type >
 struct extrapolator is a helper class providing extrapolated values for a 1D buffer indexed with possibly out-of-range indices. The extrapolated value is returned by value. boundary conditions PERIODIC , MIRROR , REFLECT, NATURAL and CONSTANT are currently supported. An extrapolator is set up by passing the boundary condition code (see common.h) and a const reference to the 1D data set, coded as a 1D vigra::MultiArrayView. The view has to refer to valid data for the time the extrapolator is in use. Now the extrapolator object can be indexed with arbitrary indices, and it will return extrapolated values. The indexing is done with operator() rather than operator[] to mark the semantic difference. Note how buffers with size 1 are treated specially for some boundary conditions: here we simply return the value at index 0. More...
 

Namespaces

namespace  vspline
 

Detailed Description

extrapolation of 1D data sets with specific boundary conditions

Definition in file extrapolate.h.