Parfis
v0.0.7
|
Tabulated function, linear and nonlinear tabulation is available. More...
#include <datastruct.h>
Public Member Functions | |
int | loadData (const std::string &fileName) |
Loads data from the defined file name and based on the object type. More... | |
Public Attributes | |
int | type |
Type 0:linear, 1:nonlinear. | |
int | colCnt |
int | rowCnt |
Row count. | |
std::vector< double > | ranges |
Vector of ranges. | |
std::vector< int > | nbins |
Vector of number of points per range. | |
std::vector< double > | idx |
Vector of 1/dx per range. | |
std::vector< double > | xVec |
X values. | |
std::vector< double > | yVec |
Y values. | |
std::function< double(double)> | eval |
Function to run the evaluation based on type. | |
Tabulated function, linear and nonlinear tabulation is available.
int parfis::FuncTable::loadData | ( | const std::string & | fileName | ) |
Loads data from the defined file name and based on the object type.
int parfis::FuncTable::colCnt |
Row count Column count (index increase by 1, is column increase)