IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33326


Ignore:
Timestamp:
Feb 21, 2012, 4:37:38 PM (14 years ago)
Author:
watersc1
Message:

Octave claims that my inputs on the test image should solve to a
reasonable answer using LU decomposition. Trying the Gauss-Jordan
solver (which should give equivalent results) gives me a solution
vector that agrees with octave to within a constant. Therefore, since
psLib's implementation of GJ seems to be more robust than the
implementation of LU, and the fact that both solvers should yield the
same answer, and the fact that LU is preferred largely due to speed,
and that's not a big issue here, I'm making the switch from LU to GJ.

I'm not terribly satisfied with this, however, as I would have
expected LU and GJ to give the same answers to the same inputs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/detrend/pmPattern.c

    r33304 r33326  
    803803   
    804804    // Solve the Ax=b equation
    805     psMatrixLUSolve(XX,solution);
    806 
     805    //    psMatrixLUSolve(XX,solution);
     806    psMatrixGJSolve(XX,solution);
     807#if (0)
     808    for (int i = 0; i < numCells; i++) { // print vector b
     809      psTrace("psModules.detrend.cont",5,"b: %d %f",
     810              i,
     811              solution->data.F64[i]
     812              );
     813    }
     814#endif
     815   
    807816    /* old code to remove the minimum solution value from the set, to give a "minimal set of offsets." Mathematically unnecessary. */
    808817/*     double min = 99e99; */
Note: See TracChangeset for help on using the changeset viewer.