Changeset 1292 for trunk/psLib/src/dataManip
- Timestamp:
- Jul 23, 2004, 4:00:21 PM (22 years ago)
- Location:
- trunk/psLib/src/dataManip
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/dataManip/psFFT.d
r1264 r1292 1 1 psFFT.o psFFT.d : psFFT.c psFFT.h ../image/psImage.h ../collections/psType.h \ 2 2 ../collections/psVector.h ../sysUtils/psError.h ../sysUtils/psMemory.h \ 3 ../sysUtils/psLogMsg.h ../image/psImageExtraction.h 3 ../sysUtils/psLogMsg.h ../image/psImageExtraction.h psStats.h -
trunk/psLib/src/dataManip/psStats.c
r1284 r1292 1839 1839 return(stats); 1840 1840 } 1841 1842 bool p_psGetStatValue(const psStats* stats, double* value) 1843 { 1844 1845 switch (stats->options & 1846 ~ (PS_STAT_USE_RANGE | PS_STAT_USE_BINSIZE | PS_STAT_ROBUST_FOR_SAMPLE)) { 1847 case PS_STAT_SAMPLE_MEAN: 1848 *value = stats->sampleMean; 1849 return true; 1850 1851 case PS_STAT_SAMPLE_MEDIAN: 1852 *value = stats->sampleMedian; 1853 return true; 1854 1855 case PS_STAT_SAMPLE_STDEV: 1856 *value = stats->sampleStdev; 1857 return true; 1858 1859 case PS_STAT_ROBUST_MEAN: 1860 *value = stats->robustMean; 1861 return true; 1862 1863 case PS_STAT_ROBUST_MEDIAN: 1864 *value = stats->robustMedian; 1865 return true; 1866 1867 case PS_STAT_ROBUST_MODE: 1868 *value = stats->robustMode; 1869 return true; 1870 1871 case PS_STAT_ROBUST_STDEV: 1872 *value = stats->robustStdev; 1873 return true; 1874 1875 case PS_STAT_CLIPPED_MEAN: 1876 *value = stats->clippedMean; 1877 return true; 1878 1879 case PS_STAT_CLIPPED_STDEV: 1880 *value = stats->clippedStdev; 1881 return true; 1882 1883 case PS_STAT_MAX: 1884 *value = stats->max; 1885 return true; 1886 1887 case PS_STAT_MIN: 1888 *value = stats->min; 1889 return true; 1890 1891 default: 1892 return false; 1893 } 1894 } -
trunk/psLib/src/dataManip/psStats.h
r1284 r1292 9 9 * @author George Gusciora, MHPCC 10 10 * 11 * @version $Revision: 1.1 5$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-07-2 3 00:06:40$11 * @version $Revision: 1.16 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-07-24 02:00:21 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 119 119 int maskVal); ///< Mask value 120 120 121 bool p_psGetStatValue( 122 const psStats* stats, 123 double* value 124 ); 121 125 122 126 /// @}
Note:
See TracChangeset
for help on using the changeset viewer.
