LAL  7.5.0.1-bede9b2
RngMedBias.h
Go to the documentation of this file.
1 /*
2 * Copyright (C) 2007 Badri Krishnan, Jolien Creighton
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with with program; see the file COPYING. If not, write to the
16 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17 * MA 02110-1301 USA
18 */
19 
20 /*-----------------------------------------------------------------------
21  *
22  * File Name: RngMedBias.h
23  *
24  * Authors: Krishnan, B.
25  *
26  *
27  * History: Created by Krishnan Feb 24, 2004
28  *
29  *
30  *-----------------------------------------------------------------------
31  */
32 
33 #ifndef _RNGMEDBIAS_H
34 #define _RNGMEDBIAS_H
35 
36 #include <stdlib.h>
37 #include <math.h>
38 #include <stdio.h>
39 #include <stdlib.h>
40 #include <string.h>
41 #include <lal/LALStdlib.h>
42 
43 #ifdef __cplusplus
44 extern "C" {
45 #endif
46 
47 /**
48  * \defgroup RngMedBias_h Header RngMedBias.h
49  * \ingroup lal_utilities
50  * \author Krishnan, B., Itoh, Y.
51  *
52  * \brief Routine for finding bias in median for exponential distribution
53  *
54  * ### Synopsis ###
55  *
56  * \code
57  * #include <lal/RngMedBias.h>
58  * \endcode
59  *
60  */
61 /** @{ */
62 
63 /**\name Error Codes */
64 /** @{ */
65 #define RNGMEDBIASH_ENULL 1 /**< Null pointer */
66 #define RNGMEDBIASH_EVAL 5 /**< Invalid value */
67 /** @} */
68 
69 /** \cond DONT_DOXYGEN */
70 #define RNGMEDBIASH_MSGENULL "Null pointer"
71 #define RNGMEDBIASH_MSGEVAL "Invalid value"
72 /** \endcond */
73 
74 /* ******************************************************
75  * 8. Macros. But, note that macros are deprecated.
76  * They could be moved to the modules where are needed
77  */
78 
79 
80 /* *******************************************************
81  * 9. Constant Declarations. (discouraged)
82  */
83 
84 
85 
86 /* **************************************************************
87  * 10. Structure, enum, union, etc., typdefs.
88  */
89 
90 /*
91  * 11. Extern Global variables. (discouraged)
92  */
93 
94 
95 /*
96  * 12. Functions Declarations (i.e., prototypes).
97  */
98 REAL8 XLALRngMedBias ( INT4 blkSize );
99 
100 
101 /* ------------------------------ obsolte and deprecated LAL-interface functions -------------------- */
103  REAL8 *biasFactor,
104  INT4 blkSize
105  );
106 
107 /** @} */
108 
109 #ifdef __cplusplus
110 } /* Close C++ protection */
111 #endif
112 
113 #endif /* Close double-include protection _RNGMEDBIAS_H */
114 
115 
116 
117 
118 
119 
120 
121 
double REAL8
Double precision real floating-point number (8 bytes).
int32_t INT4
Four-byte signed integer.
void LALRngMedBias(LALStatus *status, REAL8 *biasFactor, INT4 blkSize)
Definition: RngMedBias.c:87
REAL8 XLALRngMedBias(INT4 blkSize)
Function for finding bias in median for exponential distribution to be used with any code which uses ...
Definition: RngMedBias.c:54
LAL status structure, see The LALStatus structure for more details.
Definition: LALDatatypes.h:947