15 #ifndef BORNAGAIN_CORE_INTENSITY_INTENSITYDATAFUNCTIONS_H 
   16 #define BORNAGAIN_CORE_INTENSITY_INTENSITYDATAFUNCTIONS_H 
   39                              const double threshold);
 
   59 std::vector<std::vector<double>> 
FT2DArray(
const std::vector<std::vector<double>>& signal);
 
   63 std::unique_ptr<OutputData<double>>
 
   73 std::unique_ptr<OutputData<double>>
 
   77 std::unique_ptr<OutputData<double>>
 
Defines and implements template class OutputData.
 
Interface for one-dimensional axes.
 
Base class for 1D and 2D histograms holding values of double type.
 
Wrapper around OutputData<double> that also provides unit conversions.
 
Pure virtual base class of OffSpecularSimulation, GISASSimulation and SpecularSimulation.
 
Functions to work with intensity data.
 
double getRelativeDifference(const OutputData< double > &dat, const OutputData< double > &ref)
Returns relative difference between two data sets sum(dat[i] - ref[i])/ref[i]).
 
std::unique_ptr< OutputData< double > > createFFT(const OutputData< double > &data)
Creates Fourier Transform (OutputData format) of intensity map (OutputData format).
 
double RelativeDifference(const SimulationResult &dat, const SimulationResult &ref)
Returns sum of relative differences between each pair of elements: (a, b) -> 2*abs(a - b)/(a + b) ( a...
 
std::unique_ptr< OutputData< double > > 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.
 
double coordinateToBinf(double coordinate, const IAxis &axis)
Transforms coordinate on axis into the bin-fraction-coordinate.
 
std::unique_ptr< OutputData< double > > 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) ...
 
bool checkRelativeDifference(const OutputData< double > &dat, const OutputData< double > &ref, const double threshold)
Returns true is relative difference is below threshold; prints informative output.
 
std::vector< std::vector< double > > create2DArrayfromOutputData(const OutputData< double > &data)
Creates a vector of vectors of double (2D Array) from OutputData.
 
double coordinateFromBinf(double value, const IAxis &axis)
Transforms bin-fraction-coordinate into axis coordinate.
 
std::unique_ptr< OutputData< double > > createOutputDatafrom2DArray(const std::vector< std::vector< double >> &array_2d)
Creates OutputData from a 2D Array.
 
std::vector< std::vector< double > > FT2DArray(const std::vector< std::vector< double >> &signal)
Creates a Fourier Transform of a 2D Array (vector of vectors).