|
EMAN2
|
XYData defines a 1D (x,y) data set. More...
#include <xydata.h>
Classes | |
| struct | Pair |
Public Member Functions | |
| XYData () | |
| virtual | ~XYData () |
| int | read_file (const string &filename) |
| int | write_file (const string &filename) const |
| float | calc_correlation (XYData *xy, float minx, float maxx) const |
| void | update () |
| float | get_yatx (float x, bool outzero=true) |
| float | get_yatx_smooth (float x, int smoothing) |
| float | get_x (size_t i) const |
| void | set_x (size_t i, float x) |
| float | get_y (size_t i) const |
| void | set_y (size_t i, float y) |
| void | insort (float x, float y) |
| void | dedupx () |
| vector< float > | get_xlist () const |
| vector< float > | get_ylist () const |
| vector< float > | get_state () const |
| void | set_state (vector< float >) |
| void | set_xy_list (const vector< float > &xlist, const vector< float > &ylist) |
| void | make_gauss (int n, float xmax, float width) |
| size_t | get_size () const |
| void | set_size (size_t n) |
| float | get_miny () |
| float | get_maxy () |
| bool | is_validx (float x) const |
Private Attributes | |
| vector< Pair > | data |
| float | ymin |
| float | ymax |
| float | mean_x_spacing |
| XYData::XYData | ( | ) |
Definition at line 48 of file xydata.cpp.
| float XYData::calc_correlation | ( | XYData * | xy, |
| float | minx, | ||
| float | maxx | ||
| ) | const |
Definition at line 129 of file xydata.cpp.
References data, get_yatx(), is_validx(), LOGERR, sqrt(), update(), and x.
| void XYData::dedupx | ( | ) |
Definition at line 253 of file xydata.cpp.
|
inline |
|
inline |
|
inline |
Definition at line 127 of file xydata.h.
References data.
Referenced by EMAN::SetSFProcessor::create_radial_func(), EMAN::FSCFourierProcessor::process(), EMAN::SNRProcessor::process_inplace(), EMAN::SetIsoPowProcessor::process_inplace(), and EMAN::TestUtil::to_emobject().
| vector< float > XYData::get_state | ( | ) | const |
Definition at line 285 of file xydata.cpp.
References data.
Referenced by EMAN::SetIsoPowProcessor::process_inplace().
|
inline |
Definition at line 84 of file xydata.h.
References data.
Referenced by EMAN::SetSFProcessor::create_radial_func(), and EMAN::TestUtil::to_emobject().
| vector< float > XYData::get_xlist | ( | ) | const |
|
inline |
Definition at line 95 of file xydata.h.
References data, and InvalidValueException.
Referenced by EMAN::FSCFourierProcessor::process(), EMAN::SNRProcessor::process_inplace(), EMAN::SetIsoPowProcessor::process_inplace(), and EMAN::TestUtil::to_emobject().
| float XYData::get_yatx | ( | float | x, |
| bool | outzero = true |
||
| ) |
Definition at line 172 of file xydata.cpp.
References data, mean_x_spacing, x, and y.
Referenced by EMAN::FourierWeightAverager::add_image(), calc_correlation(), EMAN::EMAN1Ctf::compute_1d(), EMAN::EMAN2Ctf::compute_1d(), EMAN::EMAN1Ctf::compute_2d_complex(), EMAN::SetSFProcessor::create_radial_func(), EMAN::FSCFourierProcessor::process(), and EMAN::SetIsoPowProcessor::process_inplace().
| float XYData::get_yatx_smooth | ( | float | x, |
| int | smoothing | ||
| ) |
Definition at line 194 of file xydata.cpp.
References data, InvalidParameterException, mean_x_spacing, x, and y.
| vector< float > XYData::get_ylist | ( | ) | const |
| void XYData::insort | ( | float | x, |
| float | y | ||
| ) |
Definition at line 233 of file xydata.cpp.
|
inline |
| void XYData::make_gauss | ( | int | n, |
| float | xmax, | ||
| float | width | ||
| ) |
Definition at line 162 of file xydata.cpp.
References data, set_size(), and x.
Referenced by EMAN::GaussSegmentProcessor::process().
| int XYData::read_file | ( | const string & | filename | ) |
Definition at line 77 of file xydata.cpp.
References data, FileAccessException, update(), x, and y.
Referenced by EMAN::SetSFProcessor::create_radial_func(), EMAN::FSCFourierProcessor::process(), and EMAN::SNRProcessor::process_inplace().
| void XYData::set_size | ( | size_t | n | ) |
| void XYData::set_state | ( | vector< float > | list | ) |
Definition at line 297 of file xydata.cpp.
References data, InvalidParameterException, and update().
Referenced by EMAN::SetIsoPowProcessor::process_inplace().
|
inline |
| void XYData::set_xy_list | ( | const vector< float > & | xlist, |
| const vector< float > & | ylist | ||
| ) |
|
inline |
Definition at line 101 of file xydata.h.
Referenced by EMAN::FSCFourierProcessor::process(), EMAN::SNRProcessor::process_inplace(), and EMAN::SetIsoPowProcessor::process_inplace().
| void XYData::update | ( | ) |
Definition at line 53 of file xydata.cpp.
References data, mean_x_spacing, ymax, and ymin.
Referenced by calc_correlation(), insort(), EMAN::SNRProcessor::process_inplace(), read_file(), and set_state().
| int XYData::write_file | ( | const string & | filename | ) | const |
Definition at line 109 of file xydata.cpp.
|
private |
Definition at line 156 of file xydata.h.
Referenced by calc_correlation(), dedupx(), get_size(), get_state(), get_x(), get_xlist(), get_y(), get_yatx(), get_yatx_smooth(), get_ylist(), insort(), is_validx(), make_gauss(), read_file(), set_size(), set_state(), set_x(), set_xy_list(), set_y(), update(), and write_file().
|
private |
Definition at line 159 of file xydata.h.
Referenced by get_yatx(), get_yatx_smooth(), and update().
|
private |
Definition at line 158 of file xydata.h.
Referenced by get_maxy(), and update().
|
private |
Definition at line 157 of file xydata.h.
Referenced by get_miny(), and update().