GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > GRBP / V1-0-1
Constituent: grbpsiu     Tag: linux-gcc
#include "GRBP_math.h"
#include "EDS/TMR.h"
Include dependency graph for GRBP_probCalculate.h:
This graph shows which files directly or indirectly include this file:
Data Structures | |
struct | _GRBP_probTemporalCtl |
The temporal probability control handle. More... | |
struct | _GRBP_probSpatialCtl |
The temporal probability control handle. More... | |
Typedefs | |
typedef _GRBP_probTemporalCtl | GRBP_probTemporalCtl |
Typedef for struct _GRBP_probTemporalCtl. | |
typedef _GRBP_probSpatialCtl | GRBP_probSpatialCtl |
Typedef for struct _GRBP_probSpatialCtl. | |
Enumerations | |
enum | GRBP_probTemporalDef { TEMPORAL_LOW_EXP = 28, TEMPORAL_NBITS_EXP = 5, TEMPORAL_NBITS_MAN = 8, TEMPORAL_NBITS = (TEMPORAL_NBITS_EXP + TEMPORAL_NBITS_MAN), TEMPORAL_SIZE = (1 << TEMPORAL_NBITS), TEMPORAL_SHIFT = (FLOAT_V_EXP - TEMPORAL_NBITS_MAN), TEMPORAL_INC = (1 << TEMPORAL_SHIFT), TEMPORAL_BEG, TEMPORAL_ZERO_IDX, TEMPORAL_ZERO_OFFSET = (TEMPORAL_ZERO_IDX * sizeof (float)) } |
enum | GRBP_probSpatialDef { SPATIAL_LOW_EXP = 21, SPATIAL_NBITS_EXP = 5, SPATIAL_NBITS_MAN = 8, SPATIAL_NBITS = (SPATIAL_NBITS_EXP + SPATIAL_NBITS_MAN), SPATIAL_SIZE, SPATIAL_SHIFT = (FLOAT_V_EXP - SPATIAL_NBITS_MAN), SPATIAL_INC = (1 << SPATIAL_SHIFT), SPATIAL_BEG, SPATIAL_ZERO_IDX = (((127<<FLOAT_V_EXP)-(SPATIAL_BEG)) >> SPATIAL_SHIFT), SPATIAL_ZERO_OFFSET = (SPATIAL_ZERO_IDX * sizeof (float)) } |
Functions | |
const GRBP_probTemporalCtl * | GRBP_probTemporalConstruct (void) |
Constructs the lookup table for the time probability calculation. | |
float | GRBP_probTemporalCalculate (const GRBP_probTemporalCtl *ctl, float delta_time) |
Returns the log, base 10, of the temporal probability for the specified time difference delta_time. | |
static __inline float | GRBP__probTemporalCalculate (const GRBP_probTemporalCtl *ctl, float delta_time) |
Computes the temporal probability via a table lookup method. | |
const GRBP_probSpatialCtl * | GRBP_probSpatialConstruct (double log10_costhetamax) |
Constructs the control structure use to when computing the spatial probability. | |
float | GRBP_probSpatialCalculate (const GRBP_probSpatialCtl *ctl, float distance) |
Returns the log, base 10, of the spatial probability for the angular distance distance. | |
static __inline float | GRBP__probSpatialCalculate (const GRBP_probSpatialCtl *ctl, float distance) |
Computes the spatial probability via a table lookup method. | |
static __inline double | calculate_spatial_probability (double distance, double costhetamax) |
Calculate the spatial probabilty. | |
static __inline double | calculate_spatial_log10P (double distance, double costhetamax, double log10_costhetamax) |
Calculate the -log10 (spatial probabilty). | |
static __inline double | calculate_temporal_probability (double delta_time, double background_rate) |
Calculates the temporal probablity for the given delta time. | |
static __inline double | calculate_temporal_log10P (double delta_time, double background_rate) |
Calculates the temporal probablity for the given delta time. | |
static __inline float | calculate (const float *t, float val, int beg, int nman, int nshift, int o_offset) |
Workhorse lookup + optional linear correction routine. |
CVS $Id: GRBP_probCalculate.h,v 1.1 2007/08/02 17:25:00 russell Exp $
|
Workhorse lookup + optional linear correction routine.
|
|
Calculate the -log10 (spatial probabilty). )
|
|
Calculate the spatial probabilty.
|
|
Calculates the temporal probablity for the given delta time.
|
|
Calculates the temporal probablity for the given delta time.
|
|
Computes the spatial probability via a table lookup method.
|
|
Computes the temporal probability via a table lookup method.
|
|
Returns the log, base 10, of the spatial probability for the angular distance distance.
|
|
Constructs the control structure use to when computing the spatial probability.
|
|
Returns the log, base 10, of the temporal probability for the specified time difference delta_time.
|