Changeset 8232 for trunk/psLib/src/math/psStats.c
- Timestamp:
- Aug 8, 2006, 1:32:23 PM (20 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
math/psStats.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src
- Property svn:ignore
-
old new 10 10 libpslib.la.temp 11 11 config.h.in 12 psErrorText.h13 12 *.bb 14 13 *.bbg
-
- Property svn:ignore
-
trunk/psLib/src/math/psStats.c
r7999 r8232 16 16 * use ->min and ->max (PS_STAT_USE_RANGE) 17 17 * 18 * @version $Revision: 1.18 2$ $Name: not supported by cvs2svn $19 * @date $Date: 2006-0 7-28 00:44:05$18 * @version $Revision: 1.183 $ $Name: not supported by cvs2svn $ 19 * @date $Date: 2006-08-08 23:32:23 $ 20 20 * 21 21 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 49 49 #include "psString.h" 50 50 51 #include "psErrorText.h" 51 52 52 53 53 /*****************************************************************************/ … … 440 440 psError(PS_ERR_UNEXPECTED_NULL, 441 441 false, 442 PS_ERRORTEXT_psStats_STATS_SAMPLE_MEDIAN_SORT_PROBLEM);442 _("Failed to sort input data.")); 443 443 psTrace(__func__, 4, "---- %s(false) end ----\n", __func__); 444 444 psFree(vector); … … 924 924 ((y->data.F64[2] <= yVal) && (yVal <= y->data.F64[0]))) ) { 925 925 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 926 PS_ERRORTEXT_psStats_YVAL_OUT_OF_RANGE,926 _("Specified yVal, %g, is not within y-range, %g to %g."), 927 927 (psF64)yVal, y->data.F64[0], y->data.F64[2]); 928 928 } … … 946 946 if (myPoly == NULL) { 947 947 psError(PS_ERR_UNEXPECTED_NULL, false, 948 PS_ERRORTEXT_psStats_STATS_FIT_QUADRATIC_POLYNOMIAL_1D_FIT);948 _("Failed to fit a 1-dimensional polynomial to the three specified data points. Returning NAN.")); 949 949 psFree(x); 950 950 psFree(y); … … 967 967 if (isnan(tmpFloat)) { 968 968 psError(PS_ERR_UNEXPECTED_NULL, 969 false, PS_ERRORTEXT_psStats_STATS_FIT_QUADRATIC_POLY_MEDIAN);969 false, _("Failed to determine the median of the fitted polynomial. Returning NAN.")); 970 970 psFree(x); 971 971 psFree(y); … … 2035 2035 PS_STAT_FITTED_MEAN | PS_STAT_FITTED_STDEV)) { 2036 2036 if (!vectorRobustStats(inF32, errorsF32, maskU8, maskVal, stats)) { 2037 psError(PS_ERR_UNKNOWN, false, PS_ERRORTEXT_psStats_STATS_FAILED);2037 psError(PS_ERR_UNKNOWN, false, _("Failed to calculate the specified statistic.")); 2038 2038 psFree(stats); 2039 2039 psFree(inF32);
Note:
See TracChangeset
for help on using the changeset viewer.
