ALTA  alpha
Public Member Functions | Protected Attributes | List of all members
alta::data Class Referenceabstract

#include <data.h>

Collaboration diagram for alta::data:
Collaboration graph
[legend]

Public Member Functions

 data (const parameters &p, int size)
 
 data (const parameters &p, int size, const vec &min, const vec &max)
 
 data (unsigned int dim_X, unsigned int dim_Y)
 
virtual void save (const std::string &filename) const
 
virtual vec get (int i) const =0
 
virtual vec value (const vec &in) const =0
 Provide an evaluation of the data using interpolation. If the data object does not provide an interpolation mechanism, it should throw an exception. More...
 
virtual void set (int i, const vec &x)=0
 Put the sample inside the data at index I.
 
int size () const
 
virtual bool equals (const data &data, double epsilon=std::pow(1.0,-int(std::numeric_limits< double >::digits10-1)))
 Return true if this object is equal to DATA ±ε.
 
const parametersparametrization () const
 
void setParametrization (const parameters &p)
 
const vec & min () const
 Get the minimum value the input can take.
 
const vec & max () const
 Get the maximum value the input can take.
 

Protected Attributes

parameters _parameters
 
int _size
 
vec _min
 
vec _max
 

Member Function Documentation

virtual vec alta::data::value ( const vec &  in) const
pure virtual

The input vector must have the parametrization of the data, and match the total dimension: dimX + dimY.

Implemented in BrdfGrid, UTIA, MERL, BrdfSlice, MatlabInterpolant, alta::data_params, rbf_interpolant, and alta::vertical_segment.


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