Assignments Assignments

Public Types | Static Public Member Functions | Static Public Attributes | List of all members
Util::Interpolation Class Reference

`#include <interpolation.h>`

## Public Types
enum | { NEAREST , LINEAR , CATMULL_ROM , UNIFORM_CUBIC_B_SPLINE , COUNT }

## Static Public Member Functions
template<typename SampleType>
static SampleType | Sample (const std::vector< SampleType > &samples, double t, int interpolationType)

## Static Public Attributes
static std::string | Names [] = { "Nearest" , "Linear" , "Catmull-Rom" , "Uniform Cubic B-Spline" }

## Detailed Description

This class represents a scheme for performing intepolation / approximation.

## Member Enumeration Documentation

## ◆ anonymous enum

anonymous enum

The types of interpolation

Enumerator
NEAREST |
LINEAR |
CATMULL_ROM |
UNIFORM_CUBIC_B_SPLINE |
COUNT |

## Member Function Documentation

## ◆ Sample()

template<typename SampleType>

SampleType Util::Interpolation::Sample | ( | const std::vector< SampleType > & | samples,
|  | double | t,
|  | int | interpolationType )
| static

This templated static method interpolates / approximates the data in the samples vector, using the specified time parameter, t, in the range [0,1], and the prescribed interpolation scheme.

## Member Data Documentation

## ◆ Names

std::string Util::Interpolation::Names = { "Nearest" , "Linear" , "Catmull-Rom" , "Uniform Cubic B-Spline" }
| static

The names of the parameterizations

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

- Assignments/Util/interpolation.h
- Assignments/Util/interpolation.cpp
- Assignments/Util/interpolation.todo.inl