GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> GRBP / dev > test_prob / mv2304


Interface   Data Structures   File List   Data Fields   Globals  

test_prob.c File Reference

Tests the lookup based probability methods. More...

#include <GRBP_DB/GRBP_DB_probability.h>
#include <GRBP_probability.h>
#include <GRBP_probCalculate.h>
#include <GRBP_math.h>
#include <EDS/TMR.h>
#include <PBI/Endianness.h>
#include <stdlib.h>
#include <stdio.h>
#include <GRBP_probCalculate.c>
#include <GRBP_probability.c>

Defines

#define M_LN2l   0.6931471805599453094172321214581766L
#define M_LN2   0.69314718055995
#define TABLE_NBITS_MAN   6
#define TABLE_SIZE   (1 << TABLE_NBITS_MAN)
#define TABLE_SCALE   ((float)TABLE_SIZE)
#define TABLE_SHIFT   (FLOAT_V_EXP - TABLE_NBITS_MAN)
#define TABLE_MASK_MAN   ((1 << TABLE_SHIFT) - 1);
#define TABLE_INC   (1 << TABLE_SHIFT)
#define TABLE_BEG   (127 << FLOAT_V_EXP)
#define ITER   1
#define SCALE   (1<<(ITER*4 - 2))

Functions

static float get_spatial (float c, float val)
static int check_spatial (const GRBP_probSpatialCtl *ctl, float c)
static float get_temporal (float val)
static int check_temporal (const GRBP_probTemporalCtl *ctl)
void test_nlog (float v)
static __inline double alog (double val, double one, double ln2, double c1, double c2)
static __inline float alogf (float val, float one, float ln2, float c1, float c2)
static __inline float nlogf (float val)
static void log_fill (void)
static float malogf (float val, float ln2)
static __inline float convert (int x)
int test_log (const char *string)
void timeit (int cnt, const GRBP_probSpatialCtl *psc, const GRBP_probTemporalCtl *ptc)
void testit (float val, const GRBP_probSpatialCtl *psc, double log10_costhetamax, const GRBP_probTemporalCtl *ptc)
int main (int argc, char *argv[])

Variables

static float LogTable [TABLE_SIZE+1]
GRBP_DB_probability ProbDb = { 115. * M_PI/180., 200 }
double Log10_costhetamax
const GRBP_probTemporalCtl * Ptc
const GRBP_probSpatialCtl * Psc


Detailed Description

Tests the lookup based probability methods.

Author:
JJRussell - russell@slac.stanford.edu

   CVS $Id: test_prob.c,v 1.2 2011/03/30 22:11:50 russell Exp $

Generated on Wed Sep 28 10:10:39 2011 by  doxygen 1.5.8