BornAgain  1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
DataUtils.h File Reference

Description

Defines namespace DataUtils.

Homepage:\n http://www.bornagainproject.org
License:\n GNU General Public License v3 or higher (see COPYING)
Authors
Scientific Computing Group at MLZ (see CITATION, AUTHORS)

Definition in file DataUtils.h.

Include dependency graph for DataUtils.h:
This graph shows which files directly or indirectly include this file:

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< DatafieldDataUtils::Data::createFFT (const Datafield &data)
 Creates Fourier Transform (Datafield format) of intensity map (Datafield format). More...
 
std::unique_ptr< DatafieldDataUtils::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...
 
DatafieldDataUtils::Data::importArrayToDatafield (const std::vector< double > &vec)
 Reads 1D array of doubles to Python, for use in persistence test. More...
 
DatafieldDataUtils::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< DatafieldDataUtils::Data::vecvecToDatafield (const std::vector< std::vector< double >> &array_2d)
 Creates Datafield from a 2D Array. More...