Changeset 6449
- Timestamp:
- Feb 17, 2006, 2:56:44 PM (20 years ago)
- Location:
- trunk/psLib
- Files:
-
- 4 edited
-
src/math/psMinimizePowell.c (modified) (3 diffs)
-
src/math/psStats.c (modified) (2 diffs)
-
test/math/tst_psMinimizeLMM.c (modified) (2 diffs)
-
test/math/tst_psMinimizePowell.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psMinimizePowell.c
r6420 r6449 11 11 * NOTE: XXX: The SDR is silent about data types. F32 is implemented here. 12 12 * 13 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $14 * @date $Date: 2006-02-1 0 04:12:02$13 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2006-02-18 00:56:44 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 90 90 Algorithm: 91 91 92 XXX completely ad hoc: 92 XXX completely ad hoc: 93 93 start with the user-supplied starting parameter and 94 94 call that b. Calculate a/c as a fractional amount smaller/larger than b. 95 95 Repeat this process until a local minimum is found. 96 96 97 XXX: new algorithm: 97 XXX: new algorithm: 98 98 start at x=0, expand in one direction until the function 99 99 decreases. Then you have two points in the bracket. Keep going until it … … 544 544 } 545 545 } 546 v->n++; 546 547 } 547 548 -
trunk/psLib/src/math/psStats.c
r6437 r6449 16 16 * use ->min and ->max (PS_STAT_USE_RANGE) 17 17 * 18 * @version $Revision: 1.16 8$ $Name: not supported by cvs2svn $19 * @date $Date: 2006-02-1 7 00:56:48$18 * @version $Revision: 1.169 $ $Name: not supported by cvs2svn $ 19 * @date $Date: 2006-02-18 00:56:44 $ 20 20 * 21 21 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 1854 1854 y->data.F32[j] = newHistogramSmoothed->data.F32[i]; 1855 1855 x->data[j] = (psPtr *) psVectorAlloc(1, PS_TYPE_F32); 1856 x->n++; 1856 1857 ((psVector *) x->data[j])->data.F32[0] = PS_BIN_MIDPOINT(newHistogram, i); 1857 1858 j++; -
trunk/psLib/test/math/tst_psMinimizeLMM.c
r6332 r6449 20 20 myFunc(): 21 21 sum = param[0] + x[0] * x[1] + 22 param[1] * x[0] + 22 param[1] * x[0] + 23 23 param[2] * x[0]^2 + 24 param[3] * x[1] + 24 param[3] * x[1] + 25 25 param[4] * x[1]^2 26 26 … … 59 59 psVector *myDerivs = psVectorAlloc(NUM_PARAMS, PS_TYPE_F32); 60 60 psArray *myCoords = psArrayAlloc(NUM_DATA_POINTS); 61 myCoords->n = NUM_DATA_POINTS; 61 62 psVector *y = psVectorAlloc(NUM_DATA_POINTS, PS_TYPE_F32); 62 63 -
trunk/psLib/test/math/tst_psMinimizePowell.c
r6346 r6449 84 84 85 85 myCoords = psArrayAlloc(N); 86 myCoords->n = N; 86 87 for (i=0;i<N;i++) { 87 88 myCoords->data[i] = (psPtr *) psVectorAlloc(2, PS_TYPE_F32); … … 158 159 159 160 myCoords = psArrayAlloc(N); 161 myCoords->n = N; 160 162 for (i=0;i<N;i++) { 161 163 myCoords->data[i] = (psPtr *) psVectorAlloc(2, PS_TYPE_F32); … … 232 234 233 235 myCoords = psArrayAlloc(N); 236 myCoords->n = N; 234 237 for (i=0;i<N;i++) { 235 238 myCoords->data[i] = (psPtr *) psVectorAlloc(2, PS_TYPE_F32);
Note:
See TracChangeset
for help on using the changeset viewer.
