src/math.c File Reference

#include <it/types.h>
#include <it/math.h>
#include <it/vec.h>
#include <it/io.h>

Go to the source code of this file.

Defines

#define erfinv_a3   -0.140543331
#define erfinv_a2   0.914624893
#define erfinv_a1   -1.645349621
#define erfinv_a0   0.886226899
#define erfinv_b4   0.012229801
#define erfinv_b3   -0.329097515
#define erfinv_b2   1.442710462
#define erfinv_b1   -2.118377725
#define erfinv_b0   1
#define erfinv_c3   1.641345311
#define erfinv_c2   3.429567803
#define erfinv_c1   -1.62490649
#define erfinv_c0   -1.970840454
#define erfinv_d2   1.637067800
#define erfinv_d1   3.543889200
#define erfinv_d0   1

Functions

 it_function (itf_differentiate)
 it_function (itf_diff2)
 it_function (itf_integrate_trapezoid)
 it_function (itf_integrate_romberg)
 it_function (itf_integrate)
 it_function (itf_expectation)
 it_function (itf_compose)
 it_function (itf_sum)
 it_function (itf_mul)
 it_function (itf_identity)
 it_function (itf_gaussian)
 it_function (itf_laplacian)
 it_function (itf_generalized_gaussian)
double erfinv (double x)
static int nchoosek_tmp (int n, int k)
int nchoosek (int n, int k)
double lognchoosek (int n, int k)
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)
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)


Define Documentation

#define erfinv_a0   0.886226899

Definition at line 315 of file math.c.

Referenced by erfinv().

#define erfinv_a1   -1.645349621

Definition at line 314 of file math.c.

Referenced by erfinv().

#define erfinv_a2   0.914624893

Definition at line 313 of file math.c.

Referenced by erfinv().

#define erfinv_a3   -0.140543331

Definition at line 312 of file math.c.

Referenced by erfinv().

#define erfinv_b0   1

Definition at line 321 of file math.c.

Referenced by erfinv().

#define erfinv_b1   -2.118377725

Definition at line 320 of file math.c.

Referenced by erfinv().

#define erfinv_b2   1.442710462

Definition at line 319 of file math.c.

Referenced by erfinv().

#define erfinv_b3   -0.329097515

Definition at line 318 of file math.c.

Referenced by erfinv().

#define erfinv_b4   0.012229801

Definition at line 317 of file math.c.

Referenced by erfinv().

#define erfinv_c0   -1.970840454

Definition at line 326 of file math.c.

Referenced by erfinv().

#define erfinv_c1   -1.62490649

Definition at line 325 of file math.c.

Referenced by erfinv().

#define erfinv_c2   3.429567803

Definition at line 324 of file math.c.

Referenced by erfinv().

#define erfinv_c3   1.641345311

Definition at line 323 of file math.c.

Referenced by erfinv().

#define erfinv_d0   1

Definition at line 330 of file math.c.

Referenced by erfinv().

#define erfinv_d1   3.543889200

Definition at line 329 of file math.c.

Referenced by erfinv().

#define erfinv_d2   1.637067800

Definition at line 328 of file math.c.

Referenced by erfinv().


Function Documentation

it_function ( itf_generalized_gaussian   ) 

Definition at line 298 of file math.c.

it_function ( itf_laplacian   ) 

Definition at line 281 of file math.c.

it_function ( itf_gaussian   ) 

Definition at line 270 of file math.c.

References M_PI.

it_function ( itf_identity   ) 

Definition at line 262 of file math.c.

it_function ( itf_mul   ) 

Definition at line 249 of file math.c.

it_function ( itf_sum   ) 

Definition at line 236 of file math.c.

it_function ( itf_compose   ) 

Definition at line 223 of file math.c.

it_function ( itf_expectation   ) 

Definition at line 203 of file math.c.

References it_function_args, itf_identity, itf_integrate, and itf_mul.

it_function ( itf_integrate   ) 

Definition at line 179 of file math.c.

References it_function_args, itf_integrate_romberg, and N.

it_function ( itf_integrate_romberg   ) 

Definition at line 117 of file math.c.

References N, vec_delete(), and vec_new().

it_function ( itf_integrate_trapezoid   ) 

Definition at line 87 of file math.c.

References N.

it_function ( itf_diff2   ) 

Definition at line 59 of file math.c.

it_function ( itf_differentiate   ) 

Definition at line 32 of file math.c.

static int nchoosek_tmp ( int  n,
int  k 
) [static]

Definition at line 403 of file math.c.

Referenced by nchoosek().


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