IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 14, 2004, 9:40:15 AM (22 years ago)
Author:
gusciora
Message:

...

File:
1 edited

Legend:

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

    r1020 r1022  
    9595    float binSize = 0.0;                // The histogram bin size
    9696
    97     // GUS: Verify that this is the correct action.
     97    // NOTE: Verify that this is the correct action.
    9898    if (n == 0) {
    9999        return(NULL);
    100100    }
    101101
    102     // GUS: Verify that this is the correct action.
     102    // NOTE: Verify that this is the correct action.
    103103    if (lower > upper) {
    104104        return(NULL);
     
    146146    int i;                              // Loop index variable
    147147
    148     // GUS: Verify that this is the correct action.
     148    // NOTE: Verify that this is the correct action.
    149149    if (bounds == NULL) {
    150150        //        psAbort(__func__, "psHistogram requested with NULL bounds");
     
    152152    }
    153153
    154     // GUS: Verify that this is the correct action.
     154    // NOTE: Verify that this is the correct action.
    155155    if (bounds->n <= 1) {
    156156        //        psAbort(__func__, "psHistogram requested with NULL bounds");
     
    215215    int numBins = 0;                            // The total number of bins
    216216
    217     // GUS: Verify that this is the correct action.
     217    // NOTE: Verify that this is the correct action.
    218218    if (out == NULL) {
    219219        return(NULL);
    220220    }
    221221
    222     // GUS: Verify that this is the correct action.
     222    // NOTE: Verify that this is the correct action.
    223223    if (in == NULL) {
    224224        return(out);
     
    240240        }
    241241    }
    242     // GUS: determine the correct action for a variety of other cases:
     242    // NOTE: determine the correct action for a variety of other cases:
    243243    // in vector has 0 elements, and histogram structure has zero bins.
    244244
     
    268268                    // bin number requires a bit more work.
    269269                } else {
    270                     // GUS: This is slow.  Put a smarter algorithm here to
     270                    // NOTE: This is slow.  Put a smarter algorithm here to
    271271                    // find the correct bin number (bin search, probably)
    272272                    for (j=0;j<(out->bounds->n)-1;j++) {
     
    841841    psVectorFree(unsortedVector);
    842842    psVectorFree(sortedVector);
    843     // GUS: This is the
     843    // NOTE: This is the
    844844}
    845845
     
    950950
    951951    // Fit a Gaussian to the bins in the range MODE-dL to Mode+dL
    952     // GUS: This step is dependent on the functions in psMinimize.c being
     952    // NOTE: This step is dependent on the functions in psMinimize.c being
    953953    // implemented.  Currently, they are not.
    954954
     
    11221122
    11231123    // 1. Compute the sample median.
    1124     // GUS: This seems odd.  Verify with IfA that we want to calculate the
     1124    // NOTE: This seems odd.  Verify with IfA that we want to calculate the
    11251125    // median here, not the mean.
    11261126    p_psVectorSampleMedian(myVector, maskVector, maskVal, stats);
     
    11981198                       unsigned int maskVal)
    11991199{
    1200     // GUS: Verify that this is the correct action.
     1200    // NOTE: Verify that this is the correct action.
    12011201    if (in == NULL) {
    12021202        return(stats);
     
    12371237
    12381238    // ************************************************************************
    1239     // GUS: The Stdev calculation requires the mean.  Should we assume the
     1239    // NOTE: The Stdev calculation requires the mean.  Should we assume the
    12401240    // mean has already been calculated?  Or should we always calculate it?
    12411241    if (stats->options & PS_STAT_SAMPLE_STDEV) {
Note: See TracChangeset for help on using the changeset viewer.