Changeset 2058 for trunk/psLib/src/math/psStats.c
- Timestamp:
- Oct 12, 2004, 10:53:02 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psStats.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psStats.c
r1964 r2058 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.6 5$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-10- 05 23:14:15$11 * @version $Revision: 1.66 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-10-12 20:53:02 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 520 520 XXX: use a static variable for gaussianCoefs[] and compute them once. 521 521 *****************************************************************************/ 522 psVector* p_psVectorsmoothHistGaussian(psHistogram* robustHistogram, float sigma) 522 psVector* p_psVectorsmoothHistGaussian(psHistogram* robustHistogram, 523 float sigma) 523 524 { 524 525 int i = 0; // Loop index variable … … 543 544 gaussianCoefs[i] = exp(expo / denom); 544 545 546 //printf("p_psVectorsmoothHistGaussian(): gaussianCoefs[%d] is %f\n", i, gaussianCoefs[i]); 545 547 // NOTE: Gaussian smoothing just isn't working with low sigma 546 548 // values. The problem is that the Gaussian coefficients are … … 1200 1202 // Smooth the histogram. 1201 1203 // XXX: is that the right stdev? 1202 robustHistogramVector = p_psVectorsmoothHistGaussian(robustHistogram, tmpStats->clippedStdev / 4.0f); 1204 robustHistogramVector = p_psVectorsmoothHistGaussian(robustHistogram, 1205 tmpStats->clippedStdev / 4.0f); 1203 1206 1204 1207 // The following was necessary to fit a gaussian to the data, since
Note:
See TracChangeset
for help on using the changeset viewer.
