Mantid
|
MaxentTransformMultiFourier : Defines a transformation from data space to image space (and vice-versa) where spaces are related by a 1D Fourier Transform, in which which the data has multiple spectra concatenatenated. More...
#include <MaxentTransformMultiFourier.h>
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 MexentTransformFourier on the sum of the spectra. More... | |
std::vector< double > | imageToData (const std::vector< double > &image) override |
Transforms a 1D signal from image space to data space, performing an a backward MaxentTransformFourier on it then creating a concatenated copy of the resulting data for each spectrum and applying the adjustments to them. More... | |
MaxentTransformMultiFourier ()=delete | |
MaxentTransformMultiFourier (const MaxentSpaceComplex_sptr &dataSpace, MaxentSpace_sptr imageSpace, size_t numSpec) | |
Constructor. More... | |
void | setAdjustments (const std::vector< double > &linAdj, const std::vector< double > &constAdj) |
Sets the adjustments to be applied to the data when converted from image. More... | |
Public Member Functions inherited from Mantid::Algorithms::MaxentTransformFourier | |
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 | |
std::vector< double > | m_constAdjustments |
MaxentSpace_sptr | m_dataSpace |
MaxentSpace_sptr | m_imageSpace |
std::vector< double > | m_linearAdjustments |
size_t | m_numSpec |
MaxentTransformMultiFourier : Defines a transformation from data space to image space (and vice-versa) where spaces are related by a 1D Fourier Transform, in which which the data has multiple spectra concatenatenated.
In transforming from data to image, the spectra are added together before tranforming to a single image. In transforming the image to data, copies to the transformed data (one for each spectrum) are concatenated and then have the supplied adjustments applied.
The concatenated format of the data is chosen to enable existing code to calculate its chi squared.
Definition at line 33 of file MaxentTransformMultiFourier.h.
|
delete |
Mantid::Algorithms::MaxentTransformMultiFourier::MaxentTransformMultiFourier | ( | const MaxentSpaceComplex_sptr & | dataSpace, |
MaxentSpace_sptr | imageSpace, | ||
size_t | numSpec | ||
) |
Constructor.
Definition at line 17 of file MaxentTransformMultiFourier.cpp.
|
overridevirtual |
Transforms a 1D signal from data space to image space, performing a forward Fast MexentTransformFourier on the sum of the spectra.
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.
data | : [input] Data as a vector of concatenated spectra |
Reimplemented from Mantid::Algorithms::MaxentTransformFourier.
Definition at line 91 of file MaxentTransformMultiFourier.cpp.
References Mantid::Algorithms::MaxentTransformFourier::dataToImage(), and m_numSpec.
|
overridevirtual |
Transforms a 1D signal from image space to data space, performing an a backward MaxentTransformFourier on it then creating a concatenated copy of the resulting data for each spectrum and applying the adjustments to them.
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.
image | : [input] Image as a vector |
Reimplemented from Mantid::Algorithms::MaxentTransformFourier.
Definition at line 36 of file MaxentTransformMultiFourier.cpp.
References Mantid::Algorithms::MaxentTransformFourier::imageToData(), m_constAdjustments, m_linearAdjustments, and m_numSpec.
void Mantid::Algorithms::MaxentTransformMultiFourier::setAdjustments | ( | const std::vector< double > & | linAdj, |
const std::vector< double > & | constAdj | ||
) |
Sets the adjustments to be applied to the data when converted from image.
linAdj | : [input] Linear adjustments as complex numbers for all spectra concatenated |
constAdj | [input] Constant adjustments as complex numbers for all spectra concatenated |
Definition at line 117 of file MaxentTransformMultiFourier.cpp.
References m_constAdjustments, and m_linearAdjustments.
|
private |
Definition at line 51 of file MaxentTransformMultiFourier.h.
Referenced by imageToData(), and setAdjustments().
|
private |
Definition at line 47 of file MaxentTransformMultiFourier.h.
|
private |
Definition at line 48 of file MaxentTransformMultiFourier.h.
|
private |
Definition at line 50 of file MaxentTransformMultiFourier.h.
Referenced by imageToData(), and setAdjustments().
|
private |
Definition at line 49 of file MaxentTransformMultiFourier.h.
Referenced by dataToImage(), and imageToData().