Cortex  10.0.0-a4
Public Types | Public Member Functions | List of all members
IECore::Lookup< X, Y > Class Template Reference

#include <Lookup.h>

Public Types

typedef X XType
 
typedef Y YType
 
typedef boost::function< Y(X)> Function
 

Public Member Functions

 Lookup (const Function &function, XType xMin, XType xMax, unsigned numSamples)
 
void init (const Function &function, XType xMin, XType xMax, unsigned numSamples)
 
operator() (X x) const
 

Detailed Description

template<typename X, typename Y>
class IECore::Lookup< X, Y >

The Lookup class takes a function over a one dimensional domain and accelerates its computation using linear interpolation between precomputed values stored in a table.


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