11 #ifndef __FUNCTION_HPP__ 12 #define __FUNCTION_HPP__ 40 double operator()(
double x);
44 void setSamples(
size_t n);
96 void normalizeY(
bool shift =
true);
97 void normalizeX(
bool shift =
true);
100 std::string filename;
101 std::vector<Vector<2, double> > pts;
104 unsigned int samples;
105 double scaling_x, scaling_y;
106 double shift_x, shift_y;
109 double N(
int,
int,
double)
const;
110 double Nk1(
int,
double)
const;
111 double Nkt(
int,
int,
double)
const;
113 double getVal(
double x)
const;
120 std::vector<CacheVal> cache;
void shiftY(double s)
Shift the y axis by s.
Definition: Function.hpp:85
double scaleX() const
Get the current x scaling.
Definition: Function.hpp:61
A utility class for functions.
Definition: Function.hpp:34
void scaleY(double s)
Scale the y axis by s.
Definition: Function.hpp:57
double shiftX() const
Get the current x axis shift.
Definition: Function.hpp:89
void scaleX(double s)
Scale the x axis by s.
Definition: Function.hpp:50
This namespace contains all the API of MorphoGraphX.
Definition: Assert.hpp:26
double shiftY() const
Get the current y axis shift.
Definition: Function.hpp:93
double scaleY() const
Get the current y scaling.
Definition: Function.hpp:65
void shiftX(double s)
Shift the x axis by s.
Definition: Function.hpp:75
Defines the Vector class template This file is shared by cuda, do not include headers that nvcc can't...