Mantid
|
Class for helping to read the transformed data. More...
#include <Convolution.h>
Public Member Functions | |
HalfComplex (double *data, const size_t &n) | |
Constructor. More... | |
double | imag (size_t i) const |
The imaginary part of i-th transform coefficient. More... | |
double | real (size_t i) const |
The real part of i-th transform coefficient. More... | |
void | set (size_t i, const double &re, const double &im) |
Set a new value for i-th complex coefficient. More... | |
size_t | size () const |
Returns the size of the transform. More... | |
Private Attributes | |
double * | m_data |
pointer to the transformed data More... | |
bool | m_even |
true if the size of the original data is even More... | |
size_t | m_size |
size of the transformed data More... | |
Class for helping to read the transformed data.
It represent an output of the GSL real fast fourier transform routine. The routine transforms an array of n real numbers into an array of about n/2 complex numbers which are the amplitudes of the positive frequencies of the full complex fourier transform.
Definition at line 39 of file Convolution.h.
|
inline |
Constructor.
data | :: A pointer to the transformed complex data |
n | :: The size of untransformed real data |
Definition at line 49 of file Convolution.h.
|
inline |
The imaginary part of i-th transform coefficient.
i | :: The index of the complex transform coefficient |
Definition at line 69 of file Convolution.h.
References m_data, and m_size.
Referenced by Mantid::CurveFitting::Functions::Convolution::functionFFTMode().
|
inline |
The real part of i-th transform coefficient.
i | :: The index of the complex transform coefficient |
Definition at line 57 of file Convolution.h.
References m_data, and m_size.
Referenced by Mantid::CurveFitting::Functions::Convolution::functionFFTMode().
|
inline |
Set a new value for i-th complex coefficient.
i | :: The index of the coefficient |
re | :: The real part of the new value |
im | :: The imaginary part of the new value |
Definition at line 84 of file Convolution.h.
References m_data, and m_size.
Referenced by Mantid::CurveFitting::Functions::Convolution::functionFFTMode().
|
inline |
Returns the size of the transform.
Definition at line 51 of file Convolution.h.
References m_size.
Referenced by Mantid::CurveFitting::Functions::Convolution::functionFFTMode().
|
private |
pointer to the transformed data
Definition at line 41 of file Convolution.h.
|
private |
true if the size of the original data is even
Definition at line 42 of file Convolution.h.
|
private |
size of the transformed data
Definition at line 40 of file Convolution.h.