Changeset 2247
- Timestamp:
- Nov 1, 2004, 8:57:05 AM (22 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 2 edited
-
dataManip/psMinimize.c (modified) (4 diffs)
-
math/psMinimize.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/dataManip/psMinimize.c
r2246 r2247 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.7 8$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-11-01 18:5 5:38$11 * @version $Revision: 1.79 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-11-01 18:57:05 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 1040 1040 f(param + c * line). 1041 1041 1042 Algorithm: 1043 XXX completely ad hoc: 1042 Algorithm: 1043 XXX completely ad hoc: 1044 1044 start with the user-supplied starting 1045 1045 parameter and call that b. Calculate a/c as a fractional amount 1046 1046 smaller/larger than b. Repeat this process until a local minimum is found. 1047 1047 1048 XXX: 1049 new algorithm: 1048 XXX: 1049 new algorithm: 1050 1050 start at x=0, expand in one direction until the function 1051 1051 decreases. Then you have two points in the bracket. Keep going until it … … 1053 1053 direction. 1054 1054 1055 XXX: 1055 XXX: 1056 1056 This is F32 only. 1057 1057 1058 XXX: 1058 XXX: 1059 1059 output bracket vector should be an input as well. 1060 1060 *****************************************************************************/ … … 1230 1230 } 1231 1231 1232 staticpsVector *bracket = psVectorAlloc(3, PS_TYPE_F32);1232 psVector *bracket = psVectorAlloc(3, PS_TYPE_F32); 1233 1233 tmp = psVectorAlloc(params->n, PS_TYPE_F32); 1234 1234 a = -0.5; -
trunk/psLib/src/math/psMinimize.c
r2246 r2247 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.7 8$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-11-01 18:5 5:38$11 * @version $Revision: 1.79 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-11-01 18:57:05 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 1040 1040 f(param + c * line). 1041 1041 1042 Algorithm: 1043 XXX completely ad hoc: 1042 Algorithm: 1043 XXX completely ad hoc: 1044 1044 start with the user-supplied starting 1045 1045 parameter and call that b. Calculate a/c as a fractional amount 1046 1046 smaller/larger than b. Repeat this process until a local minimum is found. 1047 1047 1048 XXX: 1049 new algorithm: 1048 XXX: 1049 new algorithm: 1050 1050 start at x=0, expand in one direction until the function 1051 1051 decreases. Then you have two points in the bracket. Keep going until it … … 1053 1053 direction. 1054 1054 1055 XXX: 1055 XXX: 1056 1056 This is F32 only. 1057 1057 1058 XXX: 1058 XXX: 1059 1059 output bracket vector should be an input as well. 1060 1060 *****************************************************************************/ … … 1230 1230 } 1231 1231 1232 staticpsVector *bracket = psVectorAlloc(3, PS_TYPE_F32);1232 psVector *bracket = psVectorAlloc(3, PS_TYPE_F32); 1233 1233 tmp = psVectorAlloc(params->n, PS_TYPE_F32); 1234 1234 a = -0.5;
Note:
See TracChangeset
for help on using the changeset viewer.
