1 #ifndef __FUNCTION_HPP__
2 #define __FUNCTION_HPP__
30 double operator()(
double x);
34 void setSamples(
size_t n);
86 void normalizeY(
bool shift =
true);
87 void normalizeX(
bool shift =
true);
91 std::vector<Vector<2, double> > pts;
95 double scaling_x, scaling_y;
96 double shift_x, shift_y;
99 double N(
int,
int,
double)
const;
100 double Nk1(
int,
double)
const;
101 double Nkt(
int,
int,
double)
const;
103 double getVal(
double x)
const;
110 std::vector<CacheVal> cache;
void shiftY(double s)
Shift the y axis by s.
Definition: Function.hpp:75
double scaleX() const
Get the current x scaling.
Definition: Function.hpp:51
A utility class for functions.
Definition: Function.hpp:24
void scaleY(double s)
Scale the y axis by s.
Definition: Function.hpp:47
double shiftX() const
Get the current x axis shift.
Definition: Function.hpp:79
void scaleX(double s)
Scale the x axis by s.
Definition: Function.hpp:40
double shiftY() const
Get the current y axis shift.
Definition: Function.hpp:83
double scaleY() const
Get the current y scaling.
Definition: Function.hpp:55
void shiftX(double s)
Shift the x axis by s.
Definition: Function.hpp:65
Defines the Vector class template This file is shared by cuda, do not include headers that nvcc can't...