rank-product 0.1.0.2 → 0.1.0.3
raw patch · 2 files changed
+6/−2 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- rank-product.cabal +1/−1
- src/Statistics/RankProduct.hs +5/−1
rank-product.cabal view
@@ -1,5 +1,5 @@ name: rank-product-version: 0.1.0.2+version: 0.1.0.3 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
@@ -35,7 +35,11 @@ -- | Get the rank product of a list of Entity. rankProduct :: [Entity] -> [RankProductEntity] rankProduct xs =- fmap (RankProductEntity . (** (1 / genericLength xs)) . fromIntegral . product)+ fmap ( RankProductEntity+ . (** (1 / (genericLength . head . fmap unEntity $ xs)))+ . fromIntegral+ . product+ ) . transpose . fmap rankList . transpose