IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 3, 2015, 5:05:24 PM (11 years ago)
Author:
eugene
Message:

merge common code between fitplx and fitplx_irls; move ESCAPE to shell.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/include/astro.h

    r37807 r39227  
    1212void FreeAstro (void);
    1313
     14typedef struct {
     15  double *X;
     16  double *Y;
     17  double *t;
     18  double *pX;
     19  double *pY;
     20  double *dX;
     21  double *dY;
     22  double *Wx;
     23  double *Wy;
     24  int *index;
     25  int Npts;
     26} PlxFitData;
     27
     28typedef struct {
     29  double Ro, dRo;
     30  double Do, dDo;
     31
     32  double uR, duR;
     33  double uD, duD;
     34
     35  double p, dp;
     36
     37  double chisq;
     38  int Nfit;
     39  int getChisq;
     40} PlxFit;
     41
     42int VectorRobustStats (Vector *vector, double *median, double *sigma);
     43double VectorFractionInterpolate (double *values, float fraction, int Npts);
     44
     45int PlxSetMeanEpoch (double *R, double *D, double *T, double *Rmean, double *Dmean, double *Tmean, int *mask, int Ntotal);
     46int PlxSetEpochPosition (PlxFitData *fitdata, double *R, double *D, double *dR, double *dD, double *T, int *mask, int Ntotal, Coords *coords, double Tmean);
     47int PlxOutlierClip (PlxFitData *fitdata, int *mask, int Noutlier, float dPsigMax, Vector *dPvec, int VERBOSE);
     48
     49int PlxFitDataAlloc (PlxFitData *data, int N);
     50void PlxFitDataFree (PlxFitData *data);
     51int PlxBootstrapResample (PlxFitData *src, PlxFitData *tgt);
     52
     53int FitPMandPar (PlxFit *fit, double *X, double *dX, double *Y, double *dY, double *T, double *pR, double *pD, int Npts, int VERBOSE);
     54int sun_ecliptic (double mjd, double *lambda, double *beta, double *epsilon, double *Radius);
     55int ParFactor (double *pR, double *pD, double RA, double DEC, double Time);
     56
     57/***** */
     58
     59int FitPMandPar_IRLS (PlxFit *fit, double *X, double *dX, double *Y, double *dY, double *T, double *pR, double *pD, double *Wx, double *Wy, int Npts, int max_iterations, double outlier_limit, int VERBOSE);
     60
     61// ?? int IRLS_converged (PlxFit *fit);
     62int Plx_weighted_LS (double *T, double *pR, double *pD, double *X, double *WX, double *Y, double *WY, int Npts,
     63                     double **A, double **B, int VERBOSE);
     64double Plx_weight_cauchy (double x);
     65double Plx_dpsi_cauchy (double x);
     66double Plx_MAD(double *in, int N);
     67
    1468# endif
Note: See TracChangeset for help on using the changeset viewer.