phladiprelio-general-datatype 0.10.0.0 → 0.10.0.1
raw patch · 4 files changed
+8/−4 lines, 4 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Phladiprelio.General.Distance: sumAbsDistNorm :: Integral a => [a] -> [a] -> a
+ Phladiprelio.General.Distance: sumAbsDistNorm :: (Integral a, Ord a) => [a] -> [a] -> a
Files
- CHANGELOG.md +4/−0
- Phladiprelio/General/Distance.hs +2/−2
- README.md +1/−1
- phladiprelio-general-datatype.cabal +1/−1
CHANGELOG.md view
@@ -69,3 +69,7 @@ * Tenth version. Switched to another model of computation with mostly Word8 instead of Double. Made a window of versions for the subtle updates of the versions prior to 0.10.0.0. Added a sumAbsDistNorm function. +## 0.10.0.1 -- 2024-04-08++* Tenth version revised A. Fixed issue with sumAbsDistNorm function that leads to incorrect results in case of Bounded datatypes.+
Phladiprelio/General/Distance.hs view
@@ -36,10 +36,10 @@ vs = concatMap (replicate (lx `quot` dc)) $ ys -- | Is also a simplified distance between the lists. Intended to be used with 'Word8'.-sumAbsDistNorm :: (Integral a) => [a] -> [a] -> a+sumAbsDistNorm :: (Integral a, Ord a) => [a] -> [a] -> a sumAbsDistNorm xs ys | lc == 0 = 0- | otherwise = fromIntegral $ sum (zipWith (\x y -> toInteger . abs . subtract x $ y) ts vs) `quot` fromIntegral lc+ | otherwise = fromIntegral $ sum (zipWith (\x y -> toInteger (if x > y then x-y else y-x)) ts vs) `quot` fromIntegral lc where (ts, vs, lc, lx, ly) = toEqLength xs ys sumSqrDistNorm :: (Real a, Fractional a) => [a] -> [a] -> a
README.md view
@@ -29,7 +29,7 @@ On the 06/01/2024 there was Sophie's Kok, a sister of Emma Kok, 19th Birthday (she is 18). Therefore, the version 0.7.0.0 is additionally devoted also to her. -On the 12/03/2024 there was a Birthday of Emma Kok. She turned 16. Therefore, the version 0.10.0.0 is devoted i.e. tributed to her.+On the 12/03/2024 there was a Birthday of Emma Kok. She turned 16. Therefore, the versions 0.10.0.0 and 0.10.0.1 are devoted i.e. tributed to her. Besides, you can support Ukrainian people in various forms.
phladiprelio-general-datatype.cabal view
@@ -1,6 +1,6 @@ cabal-version: 1.24 name: phladiprelio-general-datatype-version: 0.10.0.0+version: 0.10.0.1 synopsis: Extended functionality of PhLADiPreLiO description: Can be used not only for language, but also for simpler music and lyrics composing. homepage: https://hackage.haskell.org/package/phladiprelio-general-datatype