Go to the documentation of this file. 1 #ifndef __UTIL__FUNCTION_HPP__
2 #define __UTIL__FUNCTION_HPP__
37 double operator()(
double x);
41 bool setFile(
const QString &file);
42 void setSamples (
size_t n);
49 void scaleX(
double s) { scaling_x = 1/s; }
54 void scaleY(
double s) { scaling_y = s; }
56 double scaleX()
const {
return 1/scaling_x; }
58 double scaleY()
const {
return scaling_y; }
66 void shiftX(
double s) { shift_x = -s; }
74 void shiftY(
double s) { shift_y = s; }
76 double shiftX()
const {
return -shift_x; }
78 double shiftY()
const {
return shift_y; }
79 void normalizeY(
bool shift =
true);
80 void normalizeX(
bool shift =
true);
84 std::vector<Vector<2,double> > pts;
88 double scaling_x, scaling_y;
89 double shift_x, shift_y;
92 double N(
int,
int,
double)
const;
93 double Nk1(
int,
double)
const;
94 double Nkt(
int,
int,
double)
const;
96 double getVal(
double x)
const;
103 std::vector <CacheVal> cache;
void scaleX(double s)
Scale the x axis by s.
Distributed matrix library.
double scaleY() const
Get the current y scaling.
double scaleX() const
Get the current x scaling.
T CU_HOST_DEVICE max(const T a, const T b)
double shiftX() const
Get the current x axis shift.
void shiftX(double s)
Shift the x axis by s.
A utility class for functions.
double shiftY() const
Get the current y axis shift.
CU_HOST_DEVICE T min(const T a, const T b)
void scaleY(double s)
Scale the y axis by s.
void shiftY(double s)
Shift the y axis by s.