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/src/FitAstromOps.c

    r38986 r39238  
    9393
    9494  /* do I need to do this as 2 2x2 matrix equations? */
    95   fit->A = array_init (Nterms, Nterms);
    96   fit->B = array_init (Nterms, 1);
     95  fit->B   = array_init (Nterms, 1);
     96  fit->A   = array_init (Nterms, Nterms);
     97  fit->Cov = array_init (Nterms, Nterms);
     98
     99  ALLOCATE (fit->Beta, double, Nterms);
     100  ALLOCATE (fit->Beta_prev, double, Nterms);
    97101  fit->Nterms = Nterms;
    98102
     
    106110  array_free (fit->A, fit->Nterms);
    107111  array_free (fit->B, fit->Nterms);
     112  array_free (fit->Cov, fit->Nterms);
     113
     114  free (fit->Beta);
     115  free (fit->Beta_prev);
     116
    108117  free (fit);
    109118  return;
     
    126135  object->C_red  = 0.0;
    127136  object->measure= -1;
     137
     138  object->Wx     = 1.0;
     139  object->Wy     = 1.0;
     140
     141  object->rx     = 0.0;
     142  object->ry     = 0.0;
     143  object->u      = 0.0;
     144
     145  object->mask   = 0;
    128146  return;
    129147}
Note: See TracChangeset for help on using the changeset viewer.