IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4038


Ignore:
Timestamp:
May 26, 2005, 6:32:21 AM (21 years ago)
Author:
eugene
Message:

working on the minimization convergence

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/archive/scripts/src/modeltest.c

    r3943 r4038  
    8888    psVector *v;
    8989    psVector *p;
     90    psVector *mask;
    9091
    9192    psTraceSetLevel (".", 3);
     
    110111    p[0].data.F32[3] = 2.0;
    111112
    112     rc = psMinimizeLMChi2(myMin, NULL, p, NULL, x, y, NULL, fgaussOD);
     113    mask = psVectorAlloc (4, PS_TYPE_U8);
     114    mask->data.U8[0] = 0;
     115    mask->data.U8[1] = 0;
     116    mask->data.U8[2] = 0;
     117    mask->data.U8[3] = 1;
     118
     119    rc = psMinimizeLMChi2(myMin, NULL, p, mask, x, y, NULL, fgaussOD);
    113120 
    114121    for (i = 0; i < p[0].n; i++) {
Note: See TracChangeset for help on using the changeset viewer.