IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1279


Ignore:
Timestamp:
Jul 22, 2004, 1:44:25 PM (22 years ago)
Author:
gusciora
Message:

...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psStats.c

    r1277 r1279  
    1818#include "psMinimize.h"
    1919#include "psFunctions.h"
    20 =======
    21 
    22     /*****************************************************************************/
    23     /* DEFINE STATEMENTS                                                         */
    24     /*****************************************************************************/
    25     #define DEFAULT_ROBUST_SIZE_THRESHOLD 30000   // Vectors that are large than this
    26     // will use robust statistical methods.
    27     #define GAUSS_WIDTH 20                  // The width of the Gaussian or boxcar smoothing.
    28     #define CLIPPED_NUM_ITER_LB 1
    29     #define CLIPPED_NUM_ITER_UB 10
    30     #define CLIPPED_SIGMA_LB 1.0
    31     #define CLIPPED_SIGMA_UB 10.0
    32     #define true 1
    33     #define false 0
    34     #define MYMAXFLOAT HUGE
    35     #define MAX_ITERATIONS 20
    36 
    37     #ifndef DOXYGEN
    38     void p_psVectorRobustStats(const psVector *restrict myVector,
    39                                const psVector *restrict maskVector,
    40                                unsigned int maskVal,
    41                                psStats *stats);
    42 #endif
     20
     21/*****************************************************************************/
     22/* DEFINE STATEMENTS                                                         */
     23/*****************************************************************************/
     24#define DEFAULT_ROBUST_SIZE_THRESHOLD 30000   // Vectors that are large than this
     25// will use robust statistical methods.
     26#define GAUSS_WIDTH 20                  // The width of the Gaussian or boxcar smoothing.
     27#define CLIPPED_NUM_ITER_LB 1
     28#define CLIPPED_NUM_ITER_UB 10
     29#define CLIPPED_SIGMA_LB 1.0
     30#define CLIPPED_SIGMA_UB 10.0
     31#define true 1
     32#define false 0
     33#define MYMAXFLOAT HUGE
     34#define MAX_ITERATIONS 20
     35
     36void p_psVectorRobustStats(const psVector *restrict myVector,
     37                           const psVector *restrict maskVector,
     38                           unsigned int maskVal,
     39                           psStats *stats);
    4340
    4441/** Preprocessor macro to generate error on an incorrect type */
     
    478475    }
    479476    // Sort the temporary vectors.
    480     psVectorSort(sortedVector, unsortedVector);
     477    psSort(sortedVector, unsortedVector);
    481478
    482479    // Calculate the median exactly.
     
    647644
    648645    // Sort the temporary vectors.
    649     psVectorSort(sortedVector, unsortedVector);
     646    psSort(sortedVector, unsortedVector);
    650647
    651648    // Calculate the quartile points exactly.
     
    18271824            (stats->options & PS_STAT_ROBUST_QUARTILE)) {
    18281825        p_psVectorRobustStats(in, mask, maskVal, stats);
    1829 
    1830         printf("HMMMM stats->robustMode is %f\n", stats->robustMode);
    18311826    }
    18321827
Note: See TracChangeset for help on using the changeset viewer.