- Timestamp:
- Jul 19, 2015, 6:26:28 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20150625/Ohana/src/relastro/include/relastro.h
r38599 r38604 28 28 29 29 typedef enum {TARGET_NONE, TARGET_SIMPLE, TARGET_CHIPS, TARGET_MOSAICS} FitTarget; 30 31 typedef enum { 32 FIT_RESULT_RA, 33 FIT_RESULT_DEC, 34 FIT_RESULT_uR, 35 FIT_RESULT_uD, 36 FIT_RESULT_PLX, 37 } FitAstromResultMode; 30 38 31 39 typedef enum { … … 119 127 double p, dp; 120 128 121 int getChisq;122 129 double chisq; 123 130 int Nfit; … … 140 147 double C_blue; 141 148 double C_red; 142 } FitAstromPoint s;149 } FitAstromPoint; 143 150 144 151 typedef struct { … … 149 156 off_t Noffset; 150 157 158 double *values; 151 159 FitAstromResult *fit; // use bootstrap resampling to generate Nfit fits to measure the stats 152 160 int Nfit; 153 161 int NfitAlloc; 154 162 155 FitAstromPoint s*points;156 FitAstromPoint s*sample;163 FitAstromPoint *points; 164 FitAstromPoint *sample; 157 165 int Npoints; 158 166 int NpointsAlloc; 159 167 160 FitAstromData *fit Pos;161 FitAstromData *fit PM;162 FitAstromData *fit Par;168 FitAstromData *fitdataPos; 169 FitAstromData *fitdataPM; 170 FitAstromData *fitdataPar; 163 171 164 172 Coords coords; … … 491 499 int sun_ecliptic (double jd, double *lambda, double *beta, double *epsilon, double *Radius); 492 500 int ParFactor (double *pR, double *pD, double RA, double Dec, double Time, double Tmean); 493 int FitPM ( PMFit *fit, double *X, double *dX, double *Y, double *dY, double *T, int Npts, int XVERB);494 int FitP ar (PMFit *fit, double *X, double *dX, double *Y, double *dY, double *pR, double *pD, int Npts);495 int FitP MandPar (PMFit *fit, double *X, double *dX, double *Y, double *dY, double *T, double *pR, double *pD, int Npts, int XVERB);501 int FitPM (FitAstromResult *fit, FitAstromData *data, FitAstromPoint *points, int Npoints); 502 int FitPMandPar (FitAstromResult *fit, FitAstromData *data, FitAstromPoint *points, int Npoints); 503 int FitPosPMfixed (FitAstromResult *fit, FitAstromData *data, FitAstromPoint *points, int Npoints); 496 504 497 505 Mosaic *getMosaicForImage (off_t N); … … 694 702 int client_logger_init (char *dirname); 695 703 int client_logger_message (char *format,...); 704 705 int FitAstromSetChisq (FitAstromResult *fit, FitAstromPoint *points, int Npoints, FitMode mode); 706 double VectorFractionInterpolate (double *values, float fraction, int Npts); 707 int BootstrapRobustStats (FitAstromResult *result, FitAstromResult *fit, int Nfit, int mode); 708 int BootstrapResample (FitAstromPoints *sample, FitAstromPoints *points, int Npoints); 709 int CatalogMaxNmeasure (Catalog *catalog, int Ncatalog); 710 int FitAstromPoints_Project (FitStats *fitStats, double *Tmean, double *Trange, double *parRange); 711 int UpdateObjects_SelectMeasures (FitStats *fit, Average *average, SecFilt *secfilt, MeasureTiny *measure, Measure *measureBig, int cat, off_t measOff); 712 int UpdateObjects_Stack (Average *average, SecFilt *secfilt, MeasureTiny *measure, Measure *measureBig, int Nsecfilt, FitStats *fitStats); 713 int UpdateObjects_Chips (Average *average, SecFilt *secfilt, MeasureTiny *measure, Measure *measureBig, int Nsecfilt, FitStats *fitStats, int cat, off_t measOff); 714 715 void FitAstromResultInit (FitAstromResult *fit); 716 void FitAstromPointInit (FitAstromObject *object); 717 void FitAstromDataFree (FitAstromData *fit); 718 FitAstromData *FitAstromDataInit (int Nterms); 719 void FitStatsFree (FitStats *fitStats); 720 void FitStatsSum (FitStats *src, FitStats *tgt); 721 void FitStatsReset (FitStats *tgt); 722 FitStats *FitStatsInit (int Nmax, int Nboot);
Note:
See TracChangeset
for help on using the changeset viewer.
