IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 17, 2012, 9:51:31 AM (14 years ago)
Author:
eugene
Message:

convert liststats to use a statmode element carried by the structure (instead of the global variable); add a weight term to liststats to allow more complex weighting schemes than constant or inverse-error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120405/Ohana/src/relphot/include/relphot.h

    r33885 r33886  
    3636} Mosaic;
    3737
     38typedef enum {
     39  STATS_NONE,
     40  STATS_MEAN,
     41  STATS_MEDIAN,
     42  STATS_WT_MEAN,
     43  STATS_INNER_MEAN,
     44  STATS_INNER_WTMEAN,
     45  STATS_CHI_INNER_MEAN,
     46  STATS_CHI_INNER_WTMEAN
     47} ListStatsMode;
     48
    3849typedef struct {
    3950  double median;
     
    4859  double total;
    4960  int    Nmeas;
     61  ListStatsMode statmode;
    5062} StatType;
    5163
     
    245257void          initialize          PROTO((int argc, char **argv));
    246258void          initialize_client   PROTO((int argc, char **argv));
    247 void          initstats           PROTO((char *mode));
    248 int           liststats           PROTO((double *value, double *dvalue, int N, StatType *stats));
     259void          liststats_setmode   PROTO((StatType *stats, char *strmode));
     260int           liststats           PROTO((double *value, double *dvalue, double *wvalue, int N, StatType *stats));
    249261Catalog      *load_catalogs       PROTO((SkyList *skylist, int *Ncatalog, int hostID, char *hostpath));
    250262Catalog      *load_catalogs_parallel PROTO((SkyList *sky, int *Ncatalog));
Note: See TracChangeset for help on using the changeset viewer.