# ekmett/order-statistics

travis ci and bug reporting

1 parent 9d74e9c commit 62cff191d89eb7966972799ddf92c15cc6d1aa8d committed May 10, 2012
Showing with 13 additions and 7 deletions.
1. +1 −0 .travis.yml
2. +8 −5 Statistics/Order.hs
3. +4 −2 order-statistics.cabal
1 .travis.yml
 @@ -0,0 +1 @@ +language: haskell
13 Statistics/Order.hs
 @@ -21,11 +21,11 @@ module Statistics.Order , (@#) , breakdown -- ** Robust L-Estimators - , trimean -- Tukey's trimean - , midhinge -- average of q1 and q3 - , iqr -- interquartile range - , iqm -- interquartile mean - , lscale -- second L-moment + , trimean -- Tukey's trimean + , midhinge -- average of q1 and q3 + , iqr -- interquartile range + , iqm -- interquartile mean + , lscale -- second L-moment -- ** L-Estimator Combinators , trimmed , winsorized, winsorised @@ -70,6 +70,9 @@ import qualified Statistics.Distribution as D -- | L-estimators are linear combinations of order statistics used by 'robust' statistics. newtype L r = L { runL :: Int -> IntMap r } +-- TODO: Write code to test if the result of a given L-estimator will be always than or equal +-- to the result of another L-estimator at a given sample size. + -- | Calculate the result of applying an L-estimator after sorting list into order statistics (@@) :: (Num r, Ord r) => L r -> [r] -> r l @@ xs = l @! V.fromList (sort xs)
6 order-statistics.cabal
 @@ -1,17 +1,19 @@ name: order-statistics category: Statistics -version: 0.1 +version: 0.1.0.2 license: BSD3 cabal-version: >= 1.6 license-file: LICENSE author: Edward A. Kmett maintainer: Edward A. Kmett stability: provisional homepage: http://github.com/ekmett/order-statistics/ +bug-reports: http://github.com/ekmett/order-statistics/issues copyright: Copyright (C) 2012 Edward A. Kmett synopsis: L-Estimators for robust statistics description: L-Estimators for robust statistics build-type: Simple +extra-source-files: .travis.yml source-repository head type: git @@ -27,7 +29,7 @@ library math-functions >= 0.1.1 && < 0.2, vector >= 0.9.1 && < 0.10, vector-space >= 0.8 && < 0.9, - containers >= 0.3 && < 0.5 + containers >= 0.3 && < 0.6 exposed-modules: Statistics.Distribution.Beta