Next: center_variter, Previous: imagefcts, Up: imagefcts
determine statistics for a list of objects.
#include <suplib/imagefcts.h>void ave_dev_err( void *objs, size_t n_obj, size_t s_obj, double *x_ave, double *x_ave_err, double *x_dev, double *x_dev_err, double *tot_wt, void (*get_stuff)(const void *obj,double *x,double *x_err,double *w,double *w_err) );
void *objs
- pointer to list of objects to process
size_t n_obj
- number of objects in list
size_t s_obj
- size of an object, in bytes
double *x_ave
- weighted average of objects
double *x_ave_err
- uncertainty in weighted average
double *x_dev
- weighted deviation of objects
double *x_dev_err
- uncertainty in weighted deviation
double *tot_wt
- total weight of objects
void (*get_stuff)(const void *obj,double *x,double *x_err,double *w,double *w_err)
- pointer to function which returns the weight, position, and uncertainties in weight and position of an object
ave_dev_err
determines the total weight, weighted average,
uncertainty in weighted average, weighted deviation and uncertainty
in weighted deviation for a list of objects.
Diab Jerius