BornAgain
1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
|
Wrapper around Datafield that also provides unit conversions.
Public Member Functions | |
SimulationResult ()=default | |
SimulationResult (const Datafield &data, const ICoordSystem &coords) | |
SimulationResult (const Datafield &data, const ICoordSystem *&&coords) | |
SimulationResult (const SimulationResult &other) | |
SimulationResult (SimulationResult &&other) | |
~SimulationResult () | |
PyObject * | array (Coords units=Coords::UNDEFINED) const |
Returns intensity data as Python numpy array. More... | |
std::pair< double, double > | axisMinMax (size_t i, Coords units=Coords::UNDEFINED) const |
std::string | axisName (size_t i, Coords units=Coords::UNDEFINED) const |
std::vector< double > | convertedBinCenters (Coords units=Coords::UNDEFINED) const |
std::vector< double > | convertedBinCenters (size_t i_axis, Coords units=Coords::UNDEFINED) const |
Returns axis coordinates as a numpy array. With no parameters given Returns coordinates of x-axis in default units. More... | |
const ICoordSystem & | converter () const |
Returns underlying unit converter. More... | |
Datafield * | datafield (Coords units=Coords::UNDEFINED) const |
bool | empty () const |
std::vector< double > | flatVector (Coords units=Coords::UNDEFINED) const |
SimulationResult & | operator= (const SimulationResult &other) |
SimulationResult & | operator= (SimulationResult &&other) |
double & | operator[] (size_t i) |
const double & | operator[] (size_t i) const |
size_t | rank () const |
Data element access. More... | |
SimulationResult | relativeToMaximum () const |
Returns modified SimulationResult: all intensities dvided by maximum intensity. More... | |
void | setTitle (const std::string &title) |
size_t | size () const |
std::string | title () |
|
default |
SimulationResult::SimulationResult | ( | const Datafield & | data, |
const ICoordSystem & | coords | ||
) |
SimulationResult::SimulationResult | ( | const Datafield & | data, |
const ICoordSystem *&& | coords | ||
) |
SimulationResult::~SimulationResult | ( | ) |
SimulationResult::SimulationResult | ( | const SimulationResult & | other | ) |
SimulationResult::SimulationResult | ( | SimulationResult && | other | ) |
PyObject* SimulationResult::array | ( | Coords | units = Coords::UNDEFINED | ) | const |
Returns intensity data as Python numpy array.
std::pair<double, double> SimulationResult::axisMinMax | ( | size_t | i, |
Coords | units = Coords::UNDEFINED |
||
) | const |
std::string SimulationResult::axisName | ( | size_t | i, |
Coords | units = Coords::UNDEFINED |
||
) | const |
std::vector<double> SimulationResult::convertedBinCenters | ( | Coords | units = Coords::UNDEFINED | ) | const |
std::vector<double> SimulationResult::convertedBinCenters | ( | size_t | i_axis, |
Coords | units = Coords::UNDEFINED |
||
) | const |
Returns axis coordinates as a numpy array. With no parameters given Returns coordinates of x-axis in default units.
const ICoordSystem& SimulationResult::converter | ( | ) | const |
Returns underlying unit converter.
Datafield* SimulationResult::datafield | ( | Coords | units = Coords::UNDEFINED | ) | const |
bool SimulationResult::empty | ( | ) | const |
std::vector<double> SimulationResult::flatVector | ( | Coords | units = Coords::UNDEFINED | ) | const |
SimulationResult& SimulationResult::operator= | ( | const SimulationResult & | other | ) |
SimulationResult& SimulationResult::operator= | ( | SimulationResult && | other | ) |
double& SimulationResult::operator[] | ( | size_t | i | ) |
const double& SimulationResult::operator[] | ( | size_t | i | ) | const |
size_t SimulationResult::rank | ( | ) | const |
Data element access.
SimulationResult SimulationResult::relativeToMaximum | ( | ) | const |
Returns modified SimulationResult: all intensities dvided by maximum intensity.
void SimulationResult::setTitle | ( | const std::string & | title | ) |
size_t SimulationResult::size | ( | ) | const |
std::string SimulationResult::title | ( | ) |