S2kit  1.1
Toolkit for working with functions defined on the sphere
weights.h File Reference

Go to the source code of this file.

Functions

void GenerateWeightsForDLT (const int, double *)
 Generates weights for both even and odd order Legendre transforms for a given bandwidth. More...
 

Function Documentation

◆ GenerateWeightsForDLT()

void GenerateWeightsForDLT ( const int  bw,
double *  weights 
)

Generates weights for both even and odd order Legendre transforms for a given bandwidth.

Parameters
bwbandwidth of transform
weightsarray of size 4*bw which will contain the weights for both even (starting at weights[0]) and odd (weights[2*bw]) transforms
Note
If you want to use these weights for an odd order transform, given the way the code is set up, you have to multiply the j-th weight by sin(pi*(2j+1)/(4B)).
It is taken into account in this library functions.

Definition at line 32 of file weights.c.