BornAgain
1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
|
Defines namespace DataUtils.
Definition in file DataUtils.h.
Go to the source code of this file.
Namespaces | |
DataUtils | |
DataUtils::Data | |
Functions | |
std::vector< std::vector< double > > | DataUtils::Data::create2DArrayfromDatafield (const Datafield &data) |
Creates a vector of vectors of double (2D Array) from Datafield. More... | |
std::unique_ptr< Datafield > | DataUtils::Data::createFFT (const Datafield &data) |
Creates Fourier Transform (Datafield format) of intensity map (Datafield format). More... | |
std::unique_ptr< Datafield > | DataUtils::Data::createRearrangedDataSet (const Datafield &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::vector< std::pair< double, double > > | DataUtils::Data::FindPeaks (const Datafield &hist, double sigma=2, const std::string &option={}, double threshold=0.05) |
Returns vector of peak center coordinates, for peaks in given histogram. More... | |
Datafield * | DataUtils::Data::importArrayToDatafield (const std::vector< double > &vec) |
Reads 1D array of doubles to Python, for use in persistence test. More... | |
Datafield * | DataUtils::Data::importArrayToDatafield (const std::vector< std::vector< double >> &vec) |
Reads 2D array of doubles to Python, for use in persistence test. More... | |
std::unique_ptr< Datafield > | DataUtils::Data::vecvecToDatafield (const std::vector< std::vector< double >> &array_2d) |
Creates Datafield from a 2D Array. More... | |