packages feed

rank-product 0.1.0.1 → 0.1.0.2

raw patch · 2 files changed

+3/−3 lines, 2 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Statistics.RankProduct: rankProductPermutation :: Permutations -> [Entity] -> IO [(PValue, RankProductEntity)]
+ Statistics.RankProduct: rankProductPermutation :: Permutations -> [Entity] -> IO [(RankProductEntity, PValue)]

Files

rank-product.cabal view
@@ -1,5 +1,5 @@ name:                rank-product-version:             0.1.0.1+version:             0.1.0.2 synopsis:            Find the rank product of a data set. description:         Find the rank product of a data set and get the p-value from a permutation test. homepage:            http://github.com/GregorySchwartz/rank-product#readme
src/Statistics/RankProduct.hs view
@@ -71,7 +71,7 @@ -- p-value. rankProductPermutation :: Permutations                        -> [Entity]-                       -> IO [(PValue, RankProductEntity)]+                       -> IO [(RankProductEntity, PValue)] rankProductPermutation (Permutations permutations) entities = do     let ranked  = fmap RankEntity                 . transpose@@ -101,4 +101,4 @@     let pVals =             fmap (\e -> PValue $ (fromIntegral e) / (fromIntegral permutations)) exp -    return . zip pVals $ obs+    return . zip obs $ pVals