A table of equidistant entries.
More...
#include <YScanner.h>
|
| Table () |
| Default constructor.
|
|
void | clear () |
| Clear the content entirely.
|
|
void | set (double X0, double Step) |
| Sets the first x and the step, and clears the entries. More...
|
|
void | set (const Table &T) |
| Sets the first x and the step, and clears the entries. More...
|
|
double | getX (int i) const |
| Returns x for a given index. More...
|
|
double | getXmin () const |
| Returns x of the first entry. More...
|
|
double | getXmax () const |
| Returns x of the last entry. More...
|
|
int | getIndex (double x) const |
| Returns index. More...
|
|
double | getY (int i) const |
| Returns y for a given index. More...
|
|
A table of equidistant entries.
Definition at line 118 of file YScanner.h.
◆ getIndex()
int getIndex |
( |
double |
x | ) |
const |
|
inline |
Returns index.
- Returns
- index (note: the range is not limited to the range of entries)
Definition at line 547 of file YScanner.h.
◆ getX()
double getX |
( |
int |
i | ) |
const |
|
inline |
Returns x for a given index.
- Returns
- x
Definition at line 541 of file YScanner.h.
◆ getXmax()
Returns x of the last entry.
- Returns
- maximal x
Definition at line 545 of file YScanner.h.
◆ getXmin()
Returns x of the first entry.
- Returns
- minimal x
Definition at line 543 of file YScanner.h.
◆ getY()
double getY |
( |
int |
i | ) |
const |
|
inline |
Returns y for a given index.
- Returns
- y or 0 if index is out of range
Definition at line 549 of file YScanner.h.
◆ set() [1/2]
void set |
( |
const Table & |
T | ) |
|
|
inline |
Sets the first x and the step, and clears the entries.
- Parameters
-
Definition at line 534 of file YScanner.h.
◆ set() [2/2]
void set |
( |
double |
X0, |
|
|
double |
Step |
|
) |
| |
|
inline |
Sets the first x and the step, and clears the entries.
- Parameters
-
X0 | x of the first entry |
Step | step size |
Definition at line 527 of file YScanner.h.
The documentation for this struct was generated from the following file: