# MI - Fimex: MetNoFimex::CachedInterpolation Class Reference

# MetNoFimex::CachedInterpolation Class Reference

`#include <CachedInterpolation.h>`

Inheritance diagram for MetNoFimex::CachedInterpolation:

List of all members.

## Public Member Functions

| CachedInterpolation (int funcType, std::vector< double > pointsOnXAxis, std::vector< double > pointsOnYAxis, size_t inX, size_t inY, size_t outX, size_t outY)
virtual | ~CachedInterpolation ()
virtual boost::shared_array < float > | interpolateValues (boost::shared_array< float > inData, size_t size, size_t &newSize) const

## Detailed Description

Container to cache projection details to speed up interpolation of lots of fields.

## Constructor & Destructor Documentation

MetNoFimex::CachedInterpolation::CachedInterpolation | ( | int | funcType,
|  | std::vector< double > | pointsOnXAxis,
|  | std::vector< double > | pointsOnYAxis,
|  | size_t | inX,
|  | size_t | inY,
|  | size_t | outX,
|  | size_t | outY |
| ) |  |  |

Parameters:

  | funcType | interpolation.h interpolation method
  | pointsOnXAxis | projected values of the new projections coordinates expressed in the current x-coordinate (size = outX*outY)
  | pointsOnYAxis | projected values of the new projections coordinates expressed in the current y-coordinate (size = outX*outY)
  | inX | size of current X axis
  | inY | size of current Y axis
  | outX | size of new X axis
  | outY | size of new Y axis

virtual MetNoFimex::CachedInterpolation::~CachedInterpolation | ( |  | ) | `[inline, virtual]`

## Member Function Documentation

virtual boost::shared_array<float> MetNoFimex::CachedInterpolation::interpolateValues | ( | boost::shared_array< float > | inData,
|  | size_t | size,
|  | size_t & | newSize |
| ) |  |  | const`[virtual]`

Actually interpolate the data. The data will be interpolated as floats internally.

Parameters:

  | inData | the input data
  | the | size of the input data array
  | newSize | return the size of the output-array

Implements MetNoFimex::CachedInterpolationInterface.

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

- include/fimex/CachedInterpolation.h