class to store tables like rdfs, tabulated potentials, etc
More...
#include <table.h>
|
void | clear () |
|
void | GenerateGridSpacing (double min, double max, double spacing) |
|
void | resize (Index N) |
|
Index | size () const |
|
double & | x (Index i) |
|
double & | y (Index i) |
|
const double & | x (Index i) const |
|
const double & | y (Index i) const |
|
char & | flags (Index i) |
|
double & | yerr (Index i) |
|
void | set (const Index &i, const double &x, const double &y) |
|
void | set (const Index &i, const double &x, const double &y, const char &flags) |
|
void | set (const Index &i, const double &x, const double &y, const char &flags, const double &yerr) |
|
void | set_comment (const std::string comment) |
|
void | Load (std::string filename) |
|
void | Save (std::string filename) const |
|
void | Smooth (Index Nsmooth) |
|
bool | GetHasYErr () |
|
void | SetHasYErr (bool has_yerr) |
|
double | getMaxY () const |
| Gets the maximum value in the y column.
|
|
double | getMinY () const |
| Gets the minimum value in the y column.
|
|
double | getMaxX () const |
| Gets the maximum value in the x column.
|
|
double | getMinX () const |
| Gets the minimum value in the x column.
|
|
Eigen::VectorXd & | x () |
|
Eigen::VectorXd & | y () |
|
std::vector< char > & | flags () |
|
Eigen::VectorXd & | yerr () |
|
void | push_back (double x, double y, char flags=' ') |
|
const std::string & | getErrorDetails () |
|
void | setErrorDetails (std::string str) |
|
class to store tables like rdfs, tabulated potentials, etc
Definition at line 36 of file table.h.
◆ clear()
void votca::tools::Table::clear |
( |
void | | ) |
|
◆ flags() [1/2]
std::vector< char > & votca::tools::Table::flags |
( |
| ) |
|
|
inline |
◆ flags() [2/2]
char & votca::tools::Table::flags |
( |
Index | i | ) |
|
|
inline |
◆ GenerateGridSpacing()
void votca::tools::Table::GenerateGridSpacing |
( |
double | min, |
|
|
double | max, |
|
|
double | spacing ) |
◆ getErrorDetails()
const std::string & votca::tools::Table::getErrorDetails |
( |
| ) |
|
|
inline |
◆ GetHasYErr()
bool votca::tools::Table::GetHasYErr |
( |
| ) |
|
|
inline |
◆ getMaxX()
double votca::tools::Table::getMaxX |
( |
| ) |
const |
Gets the maximum value in the x column.
- Returns
- - max value
Definition at line 88 of file table.cc.
◆ getMaxY()
double votca::tools::Table::getMaxY |
( |
| ) |
const |
Gets the maximum value in the y column.
- Returns
- - max value
Definition at line 84 of file table.cc.
◆ getMinX()
double votca::tools::Table::getMinX |
( |
| ) |
const |
Gets the minimum value in the x column.
- Returns
- - min value
Definition at line 90 of file table.cc.
◆ getMinY()
double votca::tools::Table::getMinY |
( |
| ) |
const |
Gets the minimum value in the y column.
- Returns
- - min value
Definition at line 86 of file table.cc.
◆ Load()
void votca::tools::Table::Load |
( |
std::string | filename | ) |
|
◆ push_back()
void votca::tools::Table::push_back |
( |
double | x, |
|
|
double | y, |
|
|
char | flags = ' ' ) |
◆ resize()
void votca::tools::Table::resize |
( |
Index | N | ) |
|
◆ Save()
void votca::tools::Table::Save |
( |
std::string | filename | ) |
const |
◆ set() [1/3]
void votca::tools::Table::set |
( |
const Index & | i, |
|
|
const double & | x, |
|
|
const double & | y ) |
|
inline |
◆ set() [2/3]
void votca::tools::Table::set |
( |
const Index & | i, |
|
|
const double & | x, |
|
|
const double & | y, |
|
|
const char & | flags ) |
|
inline |
◆ set() [3/3]
void votca::tools::Table::set |
( |
const Index & | i, |
|
|
const double & | x, |
|
|
const double & | y, |
|
|
const char & | flags, |
|
|
const double & | yerr ) |
|
inline |
◆ set_comment()
void votca::tools::Table::set_comment |
( |
const std::string | comment | ) |
|
|
inline |
◆ setErrorDetails()
void votca::tools::Table::setErrorDetails |
( |
std::string | str | ) |
|
|
inline |
◆ SetHasYErr()
void votca::tools::Table::SetHasYErr |
( |
bool | has_yerr | ) |
|
|
inline |
◆ size()
Index votca::tools::Table::size |
( |
| ) |
const |
|
inline |
◆ Smooth()
void votca::tools::Table::Smooth |
( |
Index | Nsmooth | ) |
|
◆ x() [1/3]
Eigen::VectorXd & votca::tools::Table::x |
( |
| ) |
|
|
inline |
◆ x() [2/3]
double & votca::tools::Table::x |
( |
Index | i | ) |
|
|
inline |
◆ x() [3/3]
const double & votca::tools::Table::x |
( |
Index | i | ) |
const |
|
inline |
◆ y() [1/3]
Eigen::VectorXd & votca::tools::Table::y |
( |
| ) |
|
|
inline |
◆ y() [2/3]
double & votca::tools::Table::y |
( |
Index | i | ) |
|
|
inline |
◆ y() [3/3]
const double & votca::tools::Table::y |
( |
Index | i | ) |
const |
|
inline |
◆ yerr() [1/2]
Eigen::VectorXd & votca::tools::Table::yerr |
( |
| ) |
|
|
inline |
◆ yerr() [2/2]
double & votca::tools::Table::yerr |
( |
Index | i | ) |
|
|
inline |
◆ operator<<
std::ostream & operator<< |
( |
std::ostream & | out, |
|
|
const Table & | t ) |
|
friend |
◆ operator>>
std::istream & operator>> |
( |
std::istream & | in, |
|
|
Table & | t ) |
|
friend |
◆ comment_line_
std::string votca::tools::Table::comment_line_ |
|
private |
◆ error_details_
std::string votca::tools::Table::error_details_ = "" |
|
private |
◆ flags_
std::vector<char> votca::tools::Table::flags_ |
|
private |
◆ has_comment_
bool votca::tools::Table::has_comment_ = false |
|
private |
◆ has_yerr_
bool votca::tools::Table::has_yerr_ = false |
|
private |
◆ x_
Eigen::VectorXd votca::tools::Table::x_ |
|
private |
◆ y_
Eigen::VectorXd votca::tools::Table::y_ |
|
private |
◆ yerr_
Eigen::VectorXd votca::tools::Table::yerr_ |
|
private |
The documentation for this class was generated from the following files: