summaryrefslogtreecommitdiff
path: root/modules/statistics/src/c/CdfBase.h
blob: dfb8211e4b927367d97d4b02cdd974dd5bc19f95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44

/*
 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
 * Copyright (C) 2007 - INRIA - Sylvestre LEDRU
 *
 * This file must be used under the terms of the CeCILL.
 * This source file is licensed as described in the file COPYING, which
 * you should have received as part of this distribution.  The terms
 * are also available at
 * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
 *
 */

#ifndef __CDFBASE_H__
#define __CDFBASE_H__

/* see cdff.f line 97 */
#define INFINITY_FOR_CDF 1.0e300
#define ZERO_FOR_CDF 1.0e-300

/**
 * TODO : needs comments
 * @param fname
 * @param inarg
 * @param oarg
 * @param callpos
 * @param option
 * @param errnames
 * @param which
 * @param (*fonc)()
 * @param (*foncErr)()
 * @return
 */
int  CdfBase(char *fname, int inarg, int oarg, int *callpos, char *option, char *errnames, int which, int (*fonc)(), void (*foncErr)() );


/* messages error */
void CdfDefaultError(char** param, int status, double bound);

void cdfLowestSearchError(double bound);

void cdfGreatestSearchError(double bound);

#endif /* __CDFBASE_H__ */