MOOSE - Multiscale Object Oriented Simulation Environment
|
#include <TableBase.h>
Public Member Functions | |
void | clearVec () |
void | compareVec (vector< double > other, string op) |
void | compareXplot (string fname, string plotname, string op) |
const vector< double > & | data () |
double | getOutputValue () const |
string | getPlotDump () const |
vector< double > | getVec () const |
unsigned int | getVecSize () const |
double | getY (unsigned int index) const |
double | interpolate (double x, double xmin, double xmax) const |
void | linearTransform (double scale, double offset) |
void | loadCSV (string fname, int startLine, int colNum, char separator) |
void | loadXplot (string fname, string plotname) |
void | loadXplotRange (string fname, string plotname, unsigned int start, unsigned int end) |
double * | lookupVec (unsigned int index) |
void | plainPlot (string file) |
void | setOutputValue (double val) |
void | setPlotDump (string v) |
void | setVec (vector< double > val) |
void | setVecSize (unsigned int num) |
TableBase () | |
void | xplot (string file, string plotname) |
Static Public Member Functions | |
static const Cinfo * | initCinfo () |
Protected Member Functions | |
vector< double > & | vec () |
Private Attributes | |
double | output_ |
vector< double > | vec_ |
Base class for table operations. Provides basics for looking up table and interpolation, but no process or messaging. Derived classes deal with these.
Definition at line 19 of file TableBase.h.
TableBase::TableBase | ( | ) |
Definition at line 158 of file TableBase.cpp.
void TableBase::clearVec | ( | ) |
Definition at line 414 of file TableBase.cpp.
References vec_.
Referenced by initCinfo(), Table::process(), Table::reinit(), Streamer::zipWithTime(), and Table::~Table().
void TableBase::compareVec | ( | vector< double > | other, |
string | op | ||
) |
Definition at line 395 of file TableBase.cpp.
References getRMSDiff(), getRMSRatio(), headop(), output_, and vec_.
Referenced by initCinfo().
void TableBase::compareXplot | ( | string | fname, |
string | plotname, | ||
string | op | ||
) |
Definition at line 374 of file TableBase.cpp.
References getRMSDiff(), getRMSRatio(), headop(), innerLoadXplot(), output_, and vec_.
Referenced by initCinfo().
const vector< double > & TableBase::data | ( | ) |
Definition at line 498 of file TableBase.cpp.
References vec_.
Referenced by StreamerBase::writeToNPYFile().
double TableBase::getOutputValue | ( | ) | const |
Definition at line 423 of file TableBase.cpp.
References output_.
Referenced by initCinfo().
string TableBase::getPlotDump | ( | ) | const |
Definition at line 503 of file TableBase.cpp.
Referenced by initCinfo().
vector< double > TableBase::getVec | ( | ) | const |
Definition at line 482 of file TableBase.cpp.
References vec_.
Referenced by initCinfo(), and Streamer::zipWithTime().
unsigned int TableBase::getVecSize | ( | ) | const |
Definition at line 477 of file TableBase.cpp.
References vec_.
Referenced by initCinfo(), Table::process(), and Streamer::process().
double TableBase::getY | ( | unsigned int | index | ) | const |
Definition at line 433 of file TableBase.cpp.
References vec_.
Referenced by initCinfo().
|
static |
Definition at line 15 of file TableBase.cpp.
References clearVec(), compareVec(), compareXplot(), getOutputValue(), getPlotDump(), getVec(), getVecSize(), getY(), Neutral::initCinfo(), linearTransform(), loadCSV(), loadXplot(), loadXplotRange(), plainPlot(), setPlotDump(), setVec(), tableCinfo, vec(), and xplot().
Referenced by TimeTable::initCinfo(), StimulusTable::initCinfo(), Table::initCinfo(), Streamer::initCinfo(), and Interpol::initCinfo().
double TableBase::interpolate | ( | double | x, |
double | xmin, | ||
double | xmax | ||
) | const |
Definition at line 440 of file TableBase.cpp.
References vec_.
Referenced by StimulusTable::process(), Interpol::process(), and StimulusTable::reinit().
void TableBase::linearTransform | ( | double | scale, |
double | offset | ||
) |
Definition at line 166 of file TableBase.cpp.
References vec_.
Referenced by initCinfo().
void TableBase::loadCSV | ( | string | fname, |
int | startLine, | ||
int | colNum, | ||
char | separator | ||
) |
Definition at line 320 of file TableBase.cpp.
Referenced by initCinfo().
void TableBase::loadXplot | ( | string | fname, |
string | plotname | ||
) |
Definition at line 294 of file TableBase.cpp.
References innerLoadXplot(), and vec_.
Referenced by initCinfo().
void TableBase::loadXplotRange | ( | string | fname, |
string | plotname, | ||
unsigned int | start, | ||
unsigned int | end | ||
) |
Definition at line 302 of file TableBase.cpp.
References innerLoadXplot(), and vec_.
Referenced by initCinfo().
double* TableBase::lookupVec | ( | unsigned int | index | ) |
void TableBase::plainPlot | ( | string | file | ) |
Definition at line 172 of file TableBase.cpp.
References vec_.
Referenced by initCinfo().
void TableBase::setOutputValue | ( | double | val | ) |
Definition at line 428 of file TableBase.cpp.
References output_.
Referenced by StimulusTable::process(), and StimulusTable::reinit().
void TableBase::setPlotDump | ( | string | v | ) |
Definition at line 509 of file TableBase.cpp.
References xplot().
Referenced by initCinfo().
void TableBase::setVec | ( | vector< double > | val | ) |
Definition at line 487 of file TableBase.cpp.
References vec_.
Referenced by initCinfo().
void TableBase::setVecSize | ( | unsigned int | num | ) |
Definition at line 472 of file TableBase.cpp.
References vec_.
|
protected |
Definition at line 492 of file TableBase.cpp.
References vec_.
Referenced by initCinfo(), Table::input(), TimeTable::process(), Table::process(), Table::reinit(), TimeTable::setFilename(), Table::spike(), and Table::~Table().
void TableBase::xplot | ( | string | file, |
string | plotname | ||
) |
Definition at line 182 of file TableBase.cpp.
References vec_.
Referenced by initCinfo(), and setPlotDump().
|
private |
Definition at line 72 of file TableBase.h.
Referenced by compareVec(), compareXplot(), getOutputValue(), and setOutputValue().
|
private |
Definition at line 73 of file TableBase.h.
Referenced by clearVec(), compareVec(), compareXplot(), data(), getVec(), getVecSize(), getY(), interpolate(), linearTransform(), loadXplot(), loadXplotRange(), plainPlot(), setVec(), setVecSize(), vec(), and xplot().