Changeset 25027 for branches/pap/psLib/src/math/psPolynomialMD.c
- Timestamp:
- Aug 7, 2009, 4:08:25 PM (17 years ago)
- Location:
- branches/pap
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
psLib/src/math/psPolynomialMD.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap
- Property svn:mergeinfo changed
-
branches/pap/psLib/src/math/psPolynomialMD.c
r21183 r25027 304 304 polynomialMDFill(poly->fitMatrix); 305 305 306 poly->LU = psMatrixLUD (poly->LU, &poly->LUperm, poly->fitMatrix); // LU-decomposed matrix306 poly->LU = psMatrixLUDecomposition(poly->LU, &poly->LUperm, poly->fitMatrix); // LU-decomposed matrix 307 307 if (!poly->LU) { 308 308 psError(PS_ERR_UNKNOWN, false, "Unable to LU-Decompose least-squares matrix."); … … 310 310 } 311 311 312 poly->coeff = psMatrixLUSol ve(poly->coeff, poly->LU, poly->fitVector, poly->LUperm);312 poly->coeff = psMatrixLUSolution(poly->coeff, poly->LU, poly->fitVector, poly->LUperm); 313 313 if (!poly->coeff) { 314 314 psError(PS_ERR_UNKNOWN, false, "Unable to solve least-squares equation."); … … 321 321 } 322 322 323 // XXX this function should take a (psVectorMaskType markVal) argument324 323 bool psPolynomialMDClipFit(psPolynomialMD *poly, const psVector *values, const psVector *errors, 325 324 const psVector *mask, psVectorMaskType maskVal, const psArray *coordsArray, … … 447 446 448 447 // Solve least-squares equation 449 *lu = psMatrixLUD (*lu, perm, matrix);448 *lu = psMatrixLUDecomposition(*lu, perm, matrix); 450 449 if (!*lu) { 451 450 psError(PS_ERR_UNKNOWN, false, "Unable to LU-Decompose least-squares matrix."); 452 451 return false; 453 452 } 454 poly->coeff = psMatrixLUSol ve(poly->coeff, *lu, vector, *perm);453 poly->coeff = psMatrixLUSolution(poly->coeff, *lu, vector, *perm); 455 454 if (!poly->coeff) { 456 455 psError(PS_ERR_UNKNOWN, false, "Unable to solve least-squares equation.");
Note:
See TracChangeset
for help on using the changeset viewer.
