Stability | experimental |
---|---|
Maintainer | David Sorokin <david.sorokin@gmail.com> |
Safe Haskell | Safe-Inferred |
Tested with: GHC 7.0.3
Represents statistics.
- data SamplingStats a = SamplingStats {
- samplingStatsCount :: !Int
- samplingStatsMin :: !a
- samplingStatsMax :: !a
- samplingStatsMean :: !Double
- samplingStatsMean2 :: !Double
- class SamplingData a where
- emptySamplingStats :: SamplingStats a
- addSamplingStats :: a -> SamplingStats a -> SamplingStats a
- samplingStatsVariance :: SamplingStats a -> Double
- samplingStatsDeviation :: SamplingStats a -> Double
- showSamplingStats :: Show a => SamplingStats a -> Int -> ShowS
- data TimingStats a = TimingStats {
- timingStatsCount :: !Int
- timingStatsMin :: !a
- timingStatsMax :: !a
- timingStatsMinTime :: !Double
- timingStatsMaxTime :: !Double
- timingStatsStartTime :: !Double
- timingStatsLastTime :: !Double
- timingStatsSum :: !Double
- timingStatsSum2 :: !Double
- class TimingData a where
- emptyTimingStats :: TimingStats a
- addTimingStats :: Double -> a -> TimingStats a -> TimingStats a
- timingStatsMean :: TimingStats a -> Double
- timingStatsVariance :: TimingStats a -> Double
- timingStatsDeviation :: TimingData a => TimingStats a -> Double
- showTimingStats :: (Show a, TimingData a) => TimingStats a -> Int -> ShowS
Documentation
data SamplingStats a Source
Describes when the statistics consists of only samples not bound to the simulation time.
SamplingStats | |
|
Eq a => Eq (SamplingStats a) | |
(Eq (SamplingStats a), Ord a) => Ord (SamplingStats a) | |
Show a => Show (SamplingStats a) |
class SamplingData a whereSource
Specifies data type from which values we can gather the statistics.
emptySamplingStats :: SamplingStats aSource
An empty statistics that has no samples.
addSamplingStats :: a -> SamplingStats a -> SamplingStats aSource
Add a new sample to the statistics.
samplingStatsVariance :: SamplingStats a -> DoubleSource
Return the variance.
samplingStatsDeviation :: SamplingStats a -> DoubleSource
Return the deviation.
showSamplingStats :: Show a => SamplingStats a -> Int -> ShowSSource
Show the summary of the statistics with the specified indent.
data TimingStats a Source
This is the timing statistics where data are bound to the time.
TimingStats | |
|
Eq a => Eq (TimingStats a) | |
(Eq (TimingStats a), Ord a) => Ord (TimingStats a) | |
Show a => Show (TimingStats a) |
class TimingData a whereSource
Defines the data type from which values we can gather the timing statistics.
emptyTimingStats :: TimingStats aSource
An empty statistics that has no samples.
addTimingStats :: Double -> a -> TimingStats a -> TimingStats aSource
Add a sample with the specified time to the statistics.
timingStatsMean :: TimingStats a -> DoubleSource
Return the average value.
timingStatsVariance :: TimingStats a -> DoubleSource
Return the variance.
timingStatsDeviation :: TimingData a => TimingStats a -> DoubleSource
Return the deviation.
showTimingStats :: (Show a, TimingData a) => TimingStats a -> Int -> ShowSSource
Show the summary of the statistics with the specified indent.