S2kit
1.1
Toolkit for working with functions defined on the sphere
|
Go to the source code of this file.
Enumerations | |
enum | DataFormat { COMPLEX = 0, REAL } |
Result data format for FST functions. More... | |
Functions | |
int | IndexOfHarmonicCoeff (const int, const int, const int) |
Gives the position of the coefficient f-hat(m,l) in the one-row array. More... | |
void | TransMult (double *, double *, double *, double *, double *, double *, const int) |
Multiplies harmonic coefficients of a function and a filter. More... | |
enum DataFormat |
Result data format for FST functions.
DataFormat is used in FST functions (e.g. FSTSemiMemo()) to determine samples' data format.
Enumerator | |
---|---|
COMPLEX | Data is complex. |
REAL | Data is real. |
int IndexOfHarmonicCoeff | ( | const int | m, |
const int | l, | ||
const int | bw | ||
) |
Gives the position of the coefficient f-hat(m,l)
in the one-row array.
Returns the position of the coefficient f-hat(m,l)
in the one-row array with the spherical coefficients. It helps to preserve the symmetry that the coefficients have:
m | order |
l | degree |
bw | bandwidth |
void TransMult | ( | double * | rdatacoeffs, |
double * | idatacoeffs, | ||
double * | rfiltercoeffs, | ||
double * | ifiltercoeffs, | ||
double * | rres, | ||
double * | ires, | ||
const int | bw | ||
) |
Multiplies harmonic coefficients of a function and a filter.
See convolution theorem of Driscoll and Healy for details.
rdatacoeffs | real data coefficients |
idatacoeffs | imaginary data coefficients |
rfiltercoeffs | real filter coefficients |
ifiltercoeffs | imaginary filter coefficients |
rres | array of real result |
ires | array of imaginary result |
bw | bandwidth of problem |
datacoeffs
should be output of an SHT (e.g. FSTSemiMemo()) filtercoeffs
should be output of an SHT (e.g. FZTSemiMemo()) bw*bw