IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 12, 2005, 9:12:01 AM (21 years ago)
Author:
desonia
Message:

massive restructuring of codebase.

File:
1 edited

Legend:

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

    r4409 r4540  
    1414 *  @author GLG, MHPCC
    1515 *
    16  *  @version $Revision: 1.45 $ $Name: not supported by cvs2svn $
    17  *  @date $Date: 2005-06-28 20:17:52 $
     16 *  @version $Revision: 1.46 $ $Name: not supported by cvs2svn $
     17 *  @date $Date: 2005-07-12 19:12:01 $
    1818 *
    1919 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    5252    PS_STAT_USE_RANGE =  0x002000,          ///< Range
    5353    PS_STAT_USE_BINSIZE = 0x004000,         ///< Binsize
    54     PS_STAT_ROBUST_FOR_SAMPLE = 0x008000    ///< Robust for sample
     54    //    PS_STAT_ROBUST_FOR_SAMPLE = 0x008000    ///< Robust for sample
    5555} psStatsOptions;
    5656
     
    6060typedef struct
    6161{
    62     psF64 sampleMean;          ///< formal mean of sample
    63     psF64 sampleMedian;        ///< formal median of sample
    64     psF64 sampleStdev;         ///< standard deviation of sample
    65     psF64 sampleUQ;            ///< upper quartile of sample
    66     psF64 sampleLQ;            ///< lower quartile of sample
    67     psF64 robustMean;          ///< robust mean of array
    68     psF64 robustMedian;        ///< robust median of array
    69     psF64 robustMode;          ///< Robust mode of array
    70     psF64 robustStdev;         ///< robust standard deviation of array
    71     psF64 robustUQ;            ///< robust upper quartile
    72     psF64 robustLQ;            ///< robust lower quartile
    73     psS32 robustN50;           ///< Number of points in Gaussian fit.  XXX: This is currently never set.
    74     psS32 robustNfit;          ///< The number of points between the quartiles.
    75     psF64 clippedMean;         ///< Nsigma clipped mean
    76     psF64 clippedStdev;        ///< standard deviation after clipping
    77     psS32 clippedNvalues;      ///< Number of data points used for clipped mean:  This value is never used.
    78     psF64 clipSigma;           ///< Nsigma used for clipping; user input
    79     psS32 clipIter;            ///< Number of clipping iterations; user input
    80     psF64 min;                 ///< minimum data value in array
    81     psF64 max;                 ///< maximum data value in array
    82     psF64 binsize;             ///< binsize for robust fit (input/ouput)
    83     psStatsOptions options;    ///< bitmask of calculated values
     62    double sampleMean;                 ///< formal mean of sample
     63    double sampleMedian;               ///< formal median of sample
     64    double sampleStdev;                ///< standard deviation of sample
     65    double sampleUQ;                   ///< upper quartile of sample
     66    double sampleLQ;                   ///< lower quartile of sample
     67    double robustMean;                 ///< robust mean of array
     68    double robustMedian;               ///< robust median of array
     69    double robustMode;                 ///< Robust mode of array
     70    double robustStdev;                ///< robust standard deviation of array
     71    double robustUQ;                   ///< robust upper quartile
     72    double robustLQ;                   ///< robust lower quartile
     73    int robustN50;                     ///< Number of points in Gaussian fit.  XXX: This is currently never set.
     74    int robustNfit;                    ///< The number of points between the quartiles.
     75    double clippedMean;                ///< Nsigma clipped mean
     76    double clippedStdev;               ///< standard deviation after clipping
     77    int clippedNvalues;                ///< Number of data points used for clipped mean:  This value is never used.
     78    double clipSigma;                  ///< Nsigma used for clipping; user input
     79    int clipIter;                      ///< Number of clipping iterations; user input
     80    double min;                        ///< minimum data value in array
     81    double max;                        ///< maximum data value in array
     82    double binsize;                    ///< binsize for robust fit (input/ouput)
     83    psStatsOptions options;            ///< bitmask of calculated values
    8484}
    8585psStats;
     
    9090 */
    9191psStats* psVectorStats(
    92     psStats* stats,          ///< stats structure defines stats to be calculated and how
    93     const psVector* in,      ///< Vector to be analysed.
    94     const psVector* errors,  ///< Errors.
    95     const psVector* mask,    ///< Ignore elements where (maskVector & maskVal) != 0: must be INT or NULL
    96     psMaskType maskVal       ///< Only mask elements with one of these bits set in maskVector
     92    psStats* stats,                    ///< stats structure defines stats to be calculated and how
     93    const psVector* in,                ///< Vector to be analysed.
     94    const psVector* errors,            ///< Errors.
     95    const psVector* mask,              ///< Ignore elements where (maskVector & maskVal) != 0: must be INT or NULL
     96    psMaskType maskVal                 ///< Only mask elements with one of these bits set in maskVector
    9797);
    9898
     
    121121typedef struct
    122122{
    123     psVector* bounds;                  ///< Bounds for the bins (type F32)
     123    const psVector* bounds;            ///< Bounds for the bins (type F32)
    124124    psVector* nums;                    ///< Number in each of the bins (INT)
    125     psS32 minNum;                      ///< Number below the minimum
    126     psS32 maxNum;                      ///< Number above the maximum
    127     psBool uniform;                    ///< Is it a uniform distribution?
     125    int minNum;                        ///< Number below the minimum
     126    int maxNum;                        ///< Number above the maximum
     127    bool uniform;                      ///< Is it a uniform distribution?
    128128}
    129129psHistogram;
Note: See TracChangeset for help on using the changeset viewer.