33 #include <lal/RngMedBias.h>
56 REAL8 biasFactor = 0.;
75 for ( blkSize -= 2; blkSize > 0; blkSize -= 2 )
76 biasFactor -= 1. / (blkSize * (
REAL8) (blkSize + 1));
78 return 1. + biasFactor;
95 if ( biasFactor == NULL )
102 (*biasFactor) = temp;
#define ABORT(statusptr, code, mesg)
#define INITSTATUS(statusptr)
#define RETURN(statusptr)
double REAL8
Double precision real floating-point number (8 bytes).
int32_t INT4
Four-byte signed integer.
#define RNGMEDBIASH_EVAL
Invalid value.
void LALRngMedBias(LALStatus *status, REAL8 *biasFactor, INT4 blkSize)
#define RNGMEDBIASH_ENULL
Null pointer.
REAL8 XLALRngMedBias(INT4 blkSize)
Function for finding bias in median for exponential distribution to be used with any code which uses ...
#define xlalErrno
Modifiable lvalue containing the XLAL error number.
#define XLAL_CHECK_REAL8(assertion,...)
Macro to test an assertion and invoke a failure if it is not true in a function that returns a REAL8.
@ XLAL_EINVAL
Invalid argument.
LAL status structure, see The LALStatus structure for more details.