Changeset 4898 for trunk/psLib/src/math/psStats.c
- Timestamp:
- Aug 29, 2005, 3:14:13 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psStats.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psStats.c
r4620 r4898 14 14 * stats->binsize 15 15 * 16 * @version $Revision: 1.13 8$ $Name: not supported by cvs2svn $17 * @date $Date: 2005-0 7-27 19:55:16$16 * @version $Revision: 1.139 $ $Name: not supported by cvs2svn $ 17 * @date $Date: 2005-08-30 01:14:13 $ 18 18 * 19 19 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 1753 1753 static void histogramFree(psHistogram* myHist); 1754 1754 1755 static void statsFree(psStats *newStruct) 1756 { 1757 // There are non dynamic allocated items 1758 } 1759 1755 1760 /****************************************************************************** 1756 1761 psStatsAlloc(): This routine must create a new psStats data structure. … … 1761 1766 1762 1767 newStruct = (psStats* ) psAlloc(sizeof(psStats)); 1768 psMemSetDeallocator(newStruct, (psFreeFunc)statsFree); 1763 1769 newStruct->sampleMean = NAN; 1764 1770 newStruct->sampleMedian = NAN; … … 1787 1793 } 1788 1794 1795 1796 bool psMemCheckStats(psPtr ptr) 1797 { 1798 return ( psMemGetDeallocator(ptr) == (psFreeFunc)statsFree ); 1799 } 1800 1801 1802 1789 1803 /****************************************************************************** 1790 1804 psHistogramAlloc(lower, upper, n): allocate a uniform histogram structure … … 1885 1899 psFree(myHist->nums); 1886 1900 } 1901 1902 1903 bool psMemCheckHistogram(psPtr ptr) 1904 { 1905 return ( psMemGetDeallocator(ptr) == (psFreeFunc)histogramFree ); 1906 } 1907 1908 1887 1909 1888 1910 /*****************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.
