IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 12, 2007, 2:19:51 PM (19 years ago)
Author:
Paul Price
Message:

Can really only code a single rejection iteration in psClip, because the user needs to be able to re-run his analysis to produce a new list of values to clip at each iteration. Moved the min-max rejection into a separate function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psClip.h

    r11248 r11755  
    22 * @brief vector clipping functions
    33 *
    4  * $Revision: 1.2 $ $Name: not supported by cvs2svn $
    5  * $Date: 2007-01-23 22:47:23 $
    6  * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     4 * @author Paul Price, IfA.
     5 *
     6 * $Revision: 1.3 $ $Name: not supported by cvs2svn $
     7 * $Date: 2007-02-13 00:19:51 $
     8 * Copyright 2007 Institute for Astronomy, University of Hawaii
    79 */
    810
     
    2123    float fracLow;                      ///< Fraction of low values to clip
    2224    int numKeep;                        ///< Minimum number of values to keep from clipping
    23     int iter;                           ///< Number of rejection iterations
     25    int iter;                           ///< Number of rejection iterations; unused by psClip functions
    2426    float rej;                          ///< Rejection limit (standard deviations)
    2527    psMaskType masked;                  ///< Mask value for entries already masked
    2628    psMaskType clipped;                 ///< Mask value to give to clipped entries
    27     float mean;                         ///< Resultant mean
    28     float stdev;                        ///< Resultant stdev
     29    double mean;                        ///< Resultant mean
     30    double stdev;                       ///< Resultant stdev
    2931}
    3032psClipParams;
    3133
    3234
    33 long psClip(psClipParams *params,       ///< Clip parameters
    34             psVector *values,           ///< Values to inspect and clip
    35             psVector *mask,             ///< Mask for values
    36             const psVector *errors      ///< Errors for values
    37            );
     35
     36/// Apply min-max clipping to a list of values
     37///
     38/// The specified fraction of high and low values are identified as clipped in the mask.  Errors are not used
     39/// in this step.
     40long psClipMinMax(const psClipParams *params, ///< Clip parameters
     41                  const psVector *values, ///< Values to inspect and clip
     42                  psVector *mask        ///< Mask for values
     43    );
     44
     45
     46
     47/// Apply a rejection iteration to a list of values
     48///
     49/// The specified rejection limit is applied to the values and errors; discrepant values are identified as
     50/// clipped in the mask.  This function only applies a single rejection iteration.
     51long psClipReject(psClipParams *params, ///< Clip parameters
     52                  const psVector *values, ///< Values to inspect and clip
     53                  psVector *mask,       ///< Mask for values
     54                  const psVector *errors ///< Errors for values, or NULL
     55    );
    3856
    3957/// @}
Note: See TracChangeset for help on using the changeset viewer.