Mantid
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Mantid::Algorithms::MaxentTransformFourier Class Reference

MaxentTransformFourier : Defines a transformation from data space to image space (and vice-versa) where spaces are related by a 1D Fourier Transform. More...

#include <MaxentTransformFourier.h>

Inheritance diagram for Mantid::Algorithms::MaxentTransformFourier:
Mantid::Algorithms::MaxentTransform Mantid::Algorithms::MaxentTransformMultiFourier

Public Member Functions

std::vector< double > dataToImage (const std::vector< double > &data) override
 Transforms a 1D signal from data space to image space, performing a forward Fast Fourier Transform. More...
 
std::vector< double > imageToData (const std::vector< double > &image) override
 Transforms a 1D signal from image space to data space, performing an inverse Fast Fourier Transform. More...
 
 MaxentTransformFourier ()=delete
 
 MaxentTransformFourier (MaxentSpace_sptr dataSpace, MaxentSpace_sptr imageSpace)
 Constructor. More...
 
- Public Member Functions inherited from Mantid::Algorithms::MaxentTransform
virtual std::vector< double > dataToImage (const std::vector< double > &data)=0
 
virtual std::vector< double > imageToData (const std::vector< double > &image)=0
 
 MaxentTransform ()=default
 
virtual ~MaxentTransform ()=default
 

Private Attributes

MaxentSpace_sptr m_dataSpace
 
MaxentSpace_sptr m_imageSpace
 

Detailed Description

MaxentTransformFourier : Defines a transformation from data space to image space (and vice-versa) where spaces are related by a 1D Fourier Transform.

Definition at line 18 of file MaxentTransformFourier.h.

Constructor & Destructor Documentation

◆ MaxentTransformFourier() [1/2]

Mantid::Algorithms::MaxentTransformFourier::MaxentTransformFourier ( )
delete

◆ MaxentTransformFourier() [2/2]

Mantid::Algorithms::MaxentTransformFourier::MaxentTransformFourier ( MaxentSpace_sptr  dataSpace,
MaxentSpace_sptr  imageSpace 
)

Constructor.

Definition at line 19 of file MaxentTransformFourier.cpp.

Member Function Documentation

◆ dataToImage()

std::vector< double > Mantid::Algorithms::MaxentTransformFourier::dataToImage ( const std::vector< double > &  data)
overridevirtual

Transforms a 1D signal from data space to image space, performing a forward Fast Fourier Transform.

See also GSL documentation on FFT. Input is assumed real or complex according to the type of data space given to the constructor. Return value is real or complex according to the type of image space given to the constructor. If complex, input & return vectors consist of real part immediately followed by imaginary part of each individual value.

Parameters
data: [input] Data as a vector
Returns
: The vector in the image space

Implements Mantid::Algorithms::MaxentTransform.

Reimplemented in Mantid::Algorithms::MaxentTransformMultiFourier.

Definition at line 68 of file MaxentTransformFourier.cpp.

References m_dataSpace, m_imageSpace, n, wavetable, and workspace.

Referenced by Mantid::Algorithms::MaxentTransformMultiFourier::dataToImage().

◆ imageToData()

std::vector< double > Mantid::Algorithms::MaxentTransformFourier::imageToData ( const std::vector< double > &  image)
overridevirtual

Transforms a 1D signal from image space to data space, performing an inverse Fast Fourier Transform.

See also GSL documentation on FFT. Input is assumed real or complex according to the type of image space given to the constructor. Return value is real or complex according to the type of data space given to the constructor. If complex, input & return vectors consist of real part immediately followed by imaginary part of each individual value.

Parameters
image: [input] Image as a vector
Returns
: The vector in the data space

Implements Mantid::Algorithms::MaxentTransform.

Reimplemented in Mantid::Algorithms::MaxentTransformMultiFourier.

Definition at line 34 of file MaxentTransformFourier.cpp.

References m_dataSpace, m_imageSpace, n, wavetable, and workspace.

Referenced by Mantid::Algorithms::MaxentTransformMultiFourier::imageToData().

Member Data Documentation

◆ m_dataSpace

MaxentSpace_sptr Mantid::Algorithms::MaxentTransformFourier::m_dataSpace
private

Definition at line 30 of file MaxentTransformFourier.h.

Referenced by dataToImage(), and imageToData().

◆ m_imageSpace

MaxentSpace_sptr Mantid::Algorithms::MaxentTransformFourier::m_imageSpace
private

Definition at line 31 of file MaxentTransformFourier.h.

Referenced by dataToImage(), and imageToData().


The documentation for this class was generated from the following files: