s2let  2.2.0
Fast wavelets on the sphere
Functions
s2let_math.c File Reference
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "s2let.h"
Include dependency graph for s2let_math.c:

Functions

double f_s2dw (double k, double B)
 
double f_needlet (double t)
 
double b3_spline (double x)
 
double s2let_math_spline_scalingfct (double x, double y)
 
double s2let_math_kappa0_quadtrap_s2dw (double a, double b, int n, double B)
 
double s2let_math_kappa0_quadtrap_needlet (double a, double b, int n)
 
double ran2_dp (int idum)
 
double maxerr_cplx (complex double *a, complex double *b, int size)
 
double maxerr (double *a, double *b, int size)
 
unsigned long binomial_coefficient (int n, int k, int exact)
 

Function Documentation

◆ b3_spline()

double b3_spline ( double  x)

Computes cubis B-spline function

◆ binomial_coefficient()

unsigned long binomial_coefficient ( int  n,
int  k,
int  exact 
)

Computes the binomial coefficient "n choose k".

Parameters
[in]nNumber of elements to choose from
[in]kNumber of elements to pick
[in]exact0 for approximate computation 1 for exact computation
Return values
Numberof possible subsets

exact implementation

◆ f_needlet()

double f_needlet ( double  t)

Tiling function for needlets

◆ f_s2dw()

double f_s2dw ( double  k,
double  B 
)

Tiling function for S2DW wavelets

◆ maxerr()

double maxerr ( double *  a,
double *  b,
int  size 
)

Max absolute error between two real arrays

◆ maxerr_cplx()

double maxerr_cplx ( complex double *  a,
complex double *  b,
int  size 
)

Max absolute error between two complex arrays

◆ ran2_dp()

double ran2_dp ( int  idum)

Random number from seed (Numerical Recipes).

◆ s2let_math_kappa0_quadtrap_needlet()

double s2let_math_kappa0_quadtrap_needlet ( double  a,
double  b,
int  n 
)

Computes smooth "Schwartz" functions for needlets

◆ s2let_math_kappa0_quadtrap_s2dw()

double s2let_math_kappa0_quadtrap_s2dw ( double  a,
double  b,
int  n,
double  B 
)

Computes smooth "Schwartz" functions for scale-discretised wavelets

◆ s2let_math_spline_scalingfct()

double s2let_math_spline_scalingfct ( double  x,
double  y 
)

Computes spline scaling function