Mathematical functions


Defines

#define NAN   (sqrt(-1))
#define M_PI   3.141592653589793238
#define M_E   2.71828182845905
#define LOG2   0.69314718055994529
#define INVLOG2   1.44269504088896339
#define log2(x)   (INVLOG2 * log(x))
#define IT_EPSILON   (1e-10)

Functions

double erfinv (double x)
int nchoosek (int n, int k)
double lognchoosek (int n, int k)
double log_sum (double log_a, double log_b)
double log_gamma (double x)
double sigmoid (double x, double lambda)
double invsigmoid (double x, double lambda)
 it_function_args (itf_gaussian)
 it_function_args (itf_laplacian)
 it_function_args (itf_generalized_gaussian)
 it_function_args (itf_differentiate)
 it_function_args (itf_diff2)
 it_function_args (itf_integrate_trapezoid)
 it_function_args (itf_integrate_romberg)
 it_function_args (itf_integrate)
 it_function_args (itf_expectation)
 it_function_args (itf_compose)
 it_function_args (itf_sum)
 it_function_args (itf_mul)
double it_integrate (it_function_t function, it_args_t args, double a, double b)
double it_differentiate (it_function_t function, it_args_t args, double a)

Variables

it_function_t itf_identity
it_function_t itf_gaussian
it_function_t itf_laplacian
it_function_t itf_generalized_gaussian
it_function_t itf_differentiate
it_function_t itf_diff2
it_function_t itf_integrate_trapezoid
it_function_t itf_integrate_romberg
it_function_t itf_integrate
it_function_t itf_expectation
it_function_t itf_compose
it_function_t itf_sum
it_function_t itf_mul

Detailed Description


Define Documentation

#define INVLOG2   1.44269504088896339

Definition at line 51 of file math.h.

#define IT_EPSILON   (1e-10)

#define log2 (  )     (INVLOG2 * log(x))

Definition at line 52 of file math.h.

Referenced by entropy_bin(), and vlc_nodes_entropy().

#define LOG2   0.69314718055994529

Definition at line 50 of file math.h.

#define M_E   2.71828182845905

Definition at line 46 of file math.h.

Referenced by main().

#define M_PI   3.141592653589793238

Definition at line 42 of file math.h.

Referenced by _fft(), _ifft(), cang(), cvec_new_unit_roots(), erfinv(), it_fdft(), it_function(), and main().

#define NAN   (sqrt(-1))

Definition at line 38 of file math.h.

Referenced by erfinv().


Function Documentation

double erfinv ( double  x  ) 

double invsigmoid ( double  x,
double  lambda 
)

Definition at line 498 of file math.c.

double it_differentiate ( it_function_t  function,
it_args_t  args,
double  a 
)

Definition at line 456 of file math.c.

References it_function_args, and itf_differentiate.

Referenced by main().

it_function_args ( itf_mul   ) 

Definition at line 186 of file math.h.

it_function_args ( itf_sum   ) 

Definition at line 177 of file math.h.

it_function_args ( itf_compose   ) 

Definition at line 168 of file math.h.

it_function_args ( itf_expectation   ) 

Definition at line 157 of file math.h.

it_function_args ( itf_integrate   ) 

Definition at line 149 of file math.h.

it_function_args ( itf_integrate_romberg   ) 

Definition at line 135 of file math.h.

References N.

it_function_args ( itf_integrate_trapezoid   ) 

Definition at line 125 of file math.h.

References N.

it_function_args ( itf_diff2   ) 

Definition at line 113 of file math.h.

it_function_args ( itf_differentiate   ) 

Definition at line 106 of file math.h.

it_function_args ( itf_generalized_gaussian   ) 

Definition at line 95 of file math.h.

it_function_args ( itf_laplacian   ) 

Definition at line 88 of file math.h.

it_function_args ( itf_gaussian   ) 

Definition at line 82 of file math.h.

double it_integrate ( it_function_t  function,
it_args_t  args,
double  a,
double  b 
)

Definition at line 445 of file math.c.

References it_function_args, and itf_integrate.

Referenced by main().

double log_gamma ( double  x  ) 

Definition at line 478 of file math.c.

double log_sum ( double  log_a,
double  log_b 
)

Definition at line 468 of file math.c.

double lognchoosek ( int  n,
int  k 
)

Definition at line 425 of file math.c.

int nchoosek ( int  n,
int  k 
)

Definition at line 412 of file math.c.

References nchoosek_tmp().

double sigmoid ( double  x,
double  lambda 
)

Definition at line 492 of file math.c.


Variable Documentation

Referenced by main().

Referenced by main().


Hosted by
Copyright (C) 2005-2006 Hervé Jégou
Vivien Chappelier
Francois Cayre
libit logo courtesy of Jonathan Delhumeau