Copyright | (c) 2009-2014 Bryan O'Sullivan (c) 2018 Composewell Technologies |
---|---|
License | BSD-style |
Maintainer | harendra.kumar@gmail.com |
Stability | experimental |
Portability | GHC |
Safe Haskell | Trustworthy |
Language | Haskell2010 |
BenchShow.Internal.Analysis
Description
Synopsis
- data OutlierEffect
- = Unaffected
- | Slight
- | Moderate
- | Severe
- data OutlierVariance = OutlierVariance {
- ovEffect :: !OutlierEffect
- ovDesc :: !String
- ovFraction :: !Double
- countOutliers :: Outliers -> Int64
- data Estimator
- = Median
- | Mean
- | Regression
- data AnalyzedField = AnalyzedField {
- analyzedMean :: !Double
- analyzedStdDev :: !Double
- analyzedMedian :: !Double
- analyzedOutliers :: !Outliers
- analyzedOutlierVar :: !OutlierVariance
- analyzedKDE :: !(Vector Double, Vector Double)
- analyzedRegCoeff :: Maybe (Estimate ConfInt Double)
- analyzedRegRSq :: Maybe (Estimate ConfInt Double)
- getAnalyzedValue :: Estimator -> AnalyzedField -> Double
- data BenchmarkMatrix = BenchmarkMatrix {
- colNames :: ![String]
- rowValues :: ![(String, [AnalyzedField])]
- data BenchmarkIterMatrix = BenchmarkIterMatrix {
- iterPredColNames :: ![String]
- iterRespColNames :: ![String]
- iterRowValues :: ![(String, [([Double], [Double])])]
- foldBenchmark :: BenchmarkIterMatrix -> IO BenchmarkMatrix
- filterSamples :: BenchmarkIterMatrix -> BenchmarkIterMatrix
- isMaxField :: String -> Bool
Documentation
data OutlierEffect Source #
A description of the extent to which outliers in the sample data affect the sample mean and standard deviation.
Constructors
Unaffected | Less than 1% effect. |
Slight | Between 1% and 10%. |
Moderate | Between 10% and 50%. |
Severe | Above 50% (i.e. measurements are useless). |
Instances
data OutlierVariance Source #
Analysis of the extent to which outliers in a sample affect its standard deviation (and to some extent, its mean).
Constructors
OutlierVariance | |
Fields
|
Instances
countOutliers :: Outliers -> Int64 Source #
Count the total number of outliers in a sample.
The statistical estimator used to arrive at a single value for a benchmark when samples from multiple experiments are available.
Since: 0.2.0
Constructors
Median | Report the median, outliers and outlier variance using box-plot method. This is the most robust indicator with respect to outliers when successive runs of benchmarks are compared. |
Mean | Report the mean and the standard deviation from the mean. This is less robust than median but more precise. |
Regression | Report the coefficient of regression, discarding the constant factor, arrived at by linear regression using ordinary least square method. The R-square goodness-of-fit estimate is also reported. It works better when larger number of samples are taken. This cannot be used when the number of samples is less than 2, in that case a mean value is reported instead. |
data AnalyzedField Source #
Constructors
AnalyzedField | |
Fields
|
Instances
Show AnalyzedField Source # | |
Defined in BenchShow.Internal.Analysis Methods showsPrec :: Int -> AnalyzedField -> ShowS # show :: AnalyzedField -> String # showList :: [AnalyzedField] -> ShowS # |
getAnalyzedValue :: Estimator -> AnalyzedField -> Double Source #
data BenchmarkMatrix Source #
Constructors
BenchmarkMatrix | |
Fields
|
Instances
Show BenchmarkMatrix Source # | |
Defined in BenchShow.Internal.Analysis Methods showsPrec :: Int -> BenchmarkMatrix -> ShowS # show :: BenchmarkMatrix -> String # showList :: [BenchmarkMatrix] -> ShowS # |
data BenchmarkIterMatrix Source #
Constructors
BenchmarkIterMatrix | |
Fields
|
Instances
Show BenchmarkIterMatrix Source # | |
Defined in BenchShow.Internal.Analysis Methods showsPrec :: Int -> BenchmarkIterMatrix -> ShowS # show :: BenchmarkIterMatrix -> String # showList :: [BenchmarkIterMatrix] -> ShowS # |
isMaxField :: String -> Bool Source #