Data::Set class reference
[Core module]
Declaration
#include <Goptical/Data/Set>
namespace Goptical {
namespace Data {
class Set;
};
};
This class is a member of the Data namespace.
This abstract class contains pure virtuals.
Inheritance
Description
This class is a base class for all numerical data sets implementations. It defines an interface to access data in a way independent from data storage and dimensions count.
Each data set implementation may define a alternative specific interface to access their data.
Here x is seen as value used to access the container. Containers with more than one dimension will require x0, x1, ..., xn known parameters to access the stored y value.
Members
See also the full member list section for this class.
Functions
- virtual ~Set()
- virtual unsigned int get_count(unsigned int dim = [...]) const = 0;
- virtual unsigned int get_dimensions() const = 0;
- Interpolation get_interpolation()
- unsigned int get_version() const
- virtual Math::range_t get_x_range(unsigned int dim = [...]) const = 0;
- virtual double get_x_value(unsigned int n, unsigned int dim = [...]) const = 0;
- virtual Math::range_t get_y_range() const
- virtual double get_y_value(const unsigned int x[]) const = 0;
- virtual double interpolate(const double x[]) const = 0;
- virtual double interpolate(const double x[], unsigned int deriv, unsigned int dim) const = 0;
- virtual void set_interpolation(Interpolation i) = 0;
Members detail
No documentation available
Get total number of data stored for dimension n in data set
Get total number of dimensions
Interpolation get_interpolation()
Get current interpolation method
Return version number which is incremented on each data set change/clear
virtual Math::range_t get_x_range(unsigned int dim = 0) const = 0;
Get minimal and maximal x values on dimension n found in data set
Get data stored at position n on dimension dim in data set
virtual Math::range_t get_y_range() const
Get minimal and maximal y values found in data set
Get y data stored at position (x0, x1, ...) in data set
Interpolate y value corresponding to given x value(s) in data set.
Interpolate y value corresponding to given x value in data set. Data may be differentiated several times along the requested dimension.
- deriv: Differentiation count, 0 means y value, 1 means 1st derivative...
- dim: Differentiation dimension
virtual void set_interpolation(Interpolation i) = 0;
Select interpolation method