IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 8, 2015, 1:56:09 PM (11 years ago)
Author:
eugene
Message:

adding IRLS to relastro

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/relastro/include/relastro.h

    r39225 r39238  
    134134  double **A;
    135135  double **B;
     136  double **Cov;
     137  double *Beta;
     138  double *Beta_prev;
    136139  int Nterms;
    137140} FitAstromData;
    138141
     142// XXX do we need doubles for all of these?  I actually only have of order 100 of these
     143// allocated at a time, so size is not an issue.
    139144typedef struct {
    140145  double X, dX;
     
    143148  double D, dD;
    144149  double T, dT;
     150  double Wx, Wy;
     151  double rx, ry;
     152  double u;
    145153  double pR;
    146154  double pD;
     
    148156  double C_red;
    149157  int measure;
     158  int mask;
    150159} FitAstromPoint;
    151160
     
    739748int FitAstromResultSetPM (FitAstromResult *fit, int Nfit, Average *average);
    740749void AstromErrorSetLoop (int Nloop, int isImageMode);
     750
     751int FitPM_IRLS (FitAstromResult *fit, FitAstromData *data, FitAstromPoint *points, int Npoints, int VERBOSE);
     752
     753double MedianAbsDeviation(FitAstromPoint *points, int Npoints);
     754
     755int weighted_LS_PM (FitAstromResult *fit, FitAstromData *data, FitAstromPoint *points, int Npoints, int VERBOSE);
     756
     757double weight_cauchy (double x);
     758double dpsi_cauchy (double x);
Note: See TracChangeset for help on using the changeset viewer.