uniqueness-periods-vector-filters 0.1.0.0 → 0.1.1.0
raw patch · 3 files changed
+8/−2 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- ChangeLog.md +4/−0
- Languages/UniquenessPeriods/Vector/Filters.hs +3/−1
- uniqueness-periods-vector-filters.cabal +1/−1
ChangeLog.md view
@@ -3,3 +3,7 @@ ## 0.1.0.0 -- 2020-09-17 * First version. Released on an unsuspecting world.++## 0.1.1.0 -- 2020-09-17++* First version revised A. Defined intervalNRealFrac for the equal two first arguments (though this can be rarely useful).
Languages/UniquenessPeriods/Vector/Filters.hs view
@@ -29,7 +29,9 @@ -> Int -> b -> Int-intervalNRealFrac minE maxE n x = zero2One . ceiling $ fromIntegral n * (x - minE) / (maxE - minE)+intervalNRealFrac minE maxE n x + | maxE == minE = round (0.5 * fromIntegral n)+ | otherwise = zero2One . ceiling $ fromIntegral n * (x - minE) / (maxE - minE) {-# INLINE intervalNRealFrac #-} zero2One :: Int -> Int
uniqueness-periods-vector-filters.cabal view
@@ -2,7 +2,7 @@ -- For further documentation, see http://haskell.org/cabal/users-guide/ name: uniqueness-periods-vector-filters-version: 0.1.0.0+version: 0.1.1.0 synopsis: A library allows to change the structure of the 'RealFrac' function output. description: A library allows to change the structure of the 'RealFrac' function output. At the moment only the equal intervals are supported.