IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6449


Ignore:
Timestamp:
Feb 17, 2006, 2:56:44 PM (20 years ago)
Author:
drobbin
Message:

Finished updating files affected by changing psArrayAlloc to set ->n=0.

Location:
trunk/psLib
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psMinimizePowell.c

    r6420 r6449  
    1111 *  NOTE: XXX: The SDR is silent about data types.  F32 is implemented here.
    1212 *
    13  *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2006-02-10 04:12:02 $
     13 *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2006-02-18 00:56:44 $
    1515 *
    1616 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    9090Algorithm:
    9191 
    92 XXX completely ad hoc: 
     92XXX completely ad hoc:
    9393start with the user-supplied starting parameter and
    9494call that b.  Calculate a/c as a fractional amount smaller/larger than b.
    9595Repeat this process until a local minimum is found.
    9696 
    97 XXX: new algorithm: 
     97XXX: new algorithm:
    9898start at x=0, expand in one direction until the function
    9999decreases.  Then you have two points in the bracket.  Keep going until it
     
    544544            }
    545545        }
     546        v->n++;
    546547    }
    547548
  • trunk/psLib/src/math/psStats.c

    r6437 r6449  
    1616 * use ->min and ->max (PS_STAT_USE_RANGE)
    1717 *
    18  *  @version $Revision: 1.168 $ $Name: not supported by cvs2svn $
    19  *  @date $Date: 2006-02-17 00:56:48 $
     18 *  @version $Revision: 1.169 $ $Name: not supported by cvs2svn $
     19 *  @date $Date: 2006-02-18 00:56:44 $
    2020 *
    2121 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    18541854            y->data.F32[j] = newHistogramSmoothed->data.F32[i];
    18551855            x->data[j] = (psPtr *) psVectorAlloc(1, PS_TYPE_F32);
     1856            x->n++;
    18561857            ((psVector *) x->data[j])->data.F32[0] = PS_BIN_MIDPOINT(newHistogram, i);
    18571858            j++;
  • trunk/psLib/test/math/tst_psMinimizeLMM.c

    r6332 r6449  
    2020myFunc():
    2121    sum = param[0] + x[0] * x[1] +
    22           param[1] * x[0] + 
     22          param[1] * x[0] +
    2323          param[2] * x[0]^2 +
    24           param[3] * x[1] + 
     24          param[3] * x[1] +
    2525          param[4] * x[1]^2
    2626 
     
    5959    psVector *myDerivs = psVectorAlloc(NUM_PARAMS, PS_TYPE_F32);
    6060    psArray *myCoords = psArrayAlloc(NUM_DATA_POINTS);
     61    myCoords->n = NUM_DATA_POINTS;
    6162    psVector *y = psVectorAlloc(NUM_DATA_POINTS, PS_TYPE_F32);
    6263
  • trunk/psLib/test/math/tst_psMinimizePowell.c

    r6346 r6449  
    8484
    8585    myCoords = psArrayAlloc(N);
     86    myCoords->n = N;
    8687    for (i=0;i<N;i++) {
    8788        myCoords->data[i] = (psPtr *) psVectorAlloc(2, PS_TYPE_F32);
     
    158159
    159160    myCoords = psArrayAlloc(N);
     161    myCoords->n = N;
    160162    for (i=0;i<N;i++) {
    161163        myCoords->data[i] = (psPtr *) psVectorAlloc(2, PS_TYPE_F32);
     
    232234
    233235    myCoords = psArrayAlloc(N);
     236    myCoords->n = N;
    234237    for (i=0;i<N;i++) {
    235238        myCoords->data[i] = (psPtr *) psVectorAlloc(2, PS_TYPE_F32);
Note: See TracChangeset for help on using the changeset viewer.