BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Defines namespace DataUtils. More...
Go to the source code of this file.
Namespaces | |
DataUtils | |
Functions | |
bool | DataUtils::checkRelativeDifference (const OutputData< double > &dat, const OutputData< double > &ref, const double threshold) |
Returns true is relative difference is below threshold; prints informative output. More... | |
void | DataUtils::coordinateFromBinf (double &x, double &y, const OutputData< double > &data) |
Transforms x,y coordinate from bin-fraction-coordinates to OutputData's axes coordinates. More... | |
double | DataUtils::coordinateFromBinf (double value, const IAxis &axis) |
Transforms bin-fraction-coordinate into axis coordinate. More... | |
void | DataUtils::coordinateToBinf (double &x, double &y, const OutputData< double > &data) |
Transforms x,y coordinate from OutputData axes coordinates to bin-fraction-coordinates. More... | |
double | DataUtils::coordinateToBinf (double coordinate, const IAxis &axis) |
Transforms coordinate on axis into the bin-fraction-coordinate. More... | |
std::vector< std::vector< double > > | DataUtils::create2DArrayfromOutputData (const OutputData< double > &data) |
Creates a vector of vectors of double (2D Array) from OutputData. More... | |
std::unique_ptr< OutputData< double > > | DataUtils::createClippedDataSet (const OutputData< double > &origin, double x1, double y1, double x2, double y2) |
Returns new IntensityData objects which axes clipped to represent the specified rectangle. More... | |
std::unique_ptr< OutputData< double > > | DataUtils::createFFT (const OutputData< double > &data) |
Creates Fourier Transform (OutputData format) of intensity map (OutputData format). More... | |
std::unique_ptr< OutputData< double > > | DataUtils::createOutputDatafrom2DArray (const std::vector< std::vector< double >> &array_2d) |
Creates OutputData from a 2D Array. More... | |
std::unique_ptr< OutputData< double > > | DataUtils::createRearrangedDataSet (const OutputData< double > &data, int n) |
Returns new object with input data rotated by n*90 deg counterclockwise (n > 0) or clockwise (n < 0) Axes are swapped if the data is effectively rotated by 90 or 270 degrees Applicable to 2D arrays only. More... | |
std::unique_ptr< OutputData< double > > | DataUtils::createRelativeDifferenceData (const OutputData< double > &data, const OutputData< double > &reference) |
OutputData< double > * | DataUtils::importArrayToOutputData (const std::vector< double > &vec) |
Reads 1D array of doubles to Python, for use in persistence test. More... | |
OutputData< double > * | DataUtils::importArrayToOutputData (const std::vector< std::vector< double >> &vec) |
Reads 2D array of doubles to Python, for use in persistence test. More... | |
double | DataUtils::relativeDataDifference (const OutputData< double > &dat, const OutputData< double > &ref) |
Returns relative difference between two data sets sum(dat[i] - ref[i])/ref[i]). More... | |
Defines namespace DataUtils.
Definition in file DataUtils.h.