packages feed

phonetic-languages-rhythmicity 0.7.0.0 → 0.8.0.0

raw patch · 4 files changed

+64/−4 lines, 4 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Rhythmicity.PolyRhythm: rhythmicityPolyWeightedEF2 :: Ord a => Double -> Int -> PolyChoices -> PolyRhythmBasis -> [a] -> Double
+ Rhythmicity.PolyRhythm: rhythmicityPolyWeightedEF20 :: Ord a => Double -> Int -> PolyChoices -> PolyRhythmBasis -> [a] -> Double
+ Rhythmicity.PolyRhythm: rhythmicityPolyWeightedEF3 :: Ord a => Double -> Int -> PolyChoices -> PolyRhythmBasis -> [a] -> Double
+ Rhythmicity.PolyRhythm: rhythmicityPolyWeightedEF30 :: Ord a => Double -> Int -> PolyChoices -> PolyRhythmBasis -> [a] -> Double
+ Rhythmicity.PolyRhythm: simpleEndF2 :: Double -> Double -> Double
+ Rhythmicity.PolyRhythm: simpleEndF3 :: Int -> Double -> Double -> Double

Files

CHANGELOG.md view
@@ -76,4 +76,9 @@ ## 0.7.0.0 -- 2021-08-14  * Seventh version. The library tries more completely include the information for analysis. Besides,-there are first weigted increasing and decreasing functions and functionality respectively.+there are first weighted increasing and decreasing functions and functionality respectively.++## 0.8.0.0 -- 2021-08-16++* Eigth version. Added also the weigted functions that try to increase the importance of the line ending+and to decrease the importance of the beginnings.
README.md view
@@ -104,5 +104,9 @@  Since the 0.7.0.0 version the program tries more completely include the information for analysis. Besides,-there are first weigted increasing and decreasing+there are first weighted increasing and decreasing functions and functionality respectively.++Since the 0.8.0.0 version added also the weigted functions+that try to increase the importance of the line ending+and to decrease the importance of the beginnings.
Rhythmicity/PolyRhythm.hs view
@@ -758,7 +758,7 @@ -------------------------------------------------------------------  {-| This function tries to increase the importance of the beginning of the line and decreases the importance-of the ending of the line. It is not linear one.+of the ending of the line. It is not a linear one. -} simpleF2 :: Double -> Double -> Double simpleF2 k x = x / (k + 1.0)^2@@ -768,6 +768,17 @@  | n <= 2 = x / (k + 1.0)^2  | otherwise = max x (x ^ n / (k + 1.0)^2) +{-| This function tries to increase the importance of the ending of the line and decreases the importance+of the beginning of the line. It is not a linear one.+-}+simpleEndF2 :: Double -> Double -> Double+simpleEndF2 k x = x * (k + 1.0)^2++simpleEndF3 :: Int -> Double -> Double -> Double+simpleEndF3 n k x+ | n <= 2 = x * (k + 1.0)^2+ | otherwise = max x (x ^ n * (k + 1.0)^2)+ -------------------------------------------------------------------  rhythmicityPolyWeightedF2@@ -809,6 +820,46 @@   -> Double rhythmicityPolyWeightedF30 = rhythmicityPolyG01 (simpleF3) {-# INLINE rhythmicityPolyWeightedF30 #-}++rhythmicityPolyWeightedEF2+  :: (Ord a) => Double -- ^ The initial value starting from which it counts. Usually, equals to 1.0.+  -> Int -- ^ If the argument is less or equal to 4, then 'Marker4s' is used, if it is greater than 4, then 'PolyMarkers' is used.+  -> PolyChoices+  -> PolyRhythmBasis+  -> [a]+  -> Double+rhythmicityPolyWeightedEF2 = rhythmicityPolyG12 (simpleEndF2)+{-# INLINE rhythmicityPolyWeightedEF2 #-}++rhythmicityPolyWeightedEF3+  :: (Ord a) => Double -- ^ The initial value starting from which it counts. Usually, equals to 1.0.+  -> Int -- ^ If the argument is less or equal to 4, then 'Marker4s' is used, if it is greater than 4, then 'PolyMarkers' is used.+  -> PolyChoices+  -> PolyRhythmBasis+  -> [a]+  -> Double+rhythmicityPolyWeightedEF3 = rhythmicityPolyG1 (simpleEndF3)+{-# INLINE rhythmicityPolyWeightedEF3 #-}++rhythmicityPolyWeightedEF20+  :: (Ord a) => Double -- ^ The initial value starting from which it counts. Usually, equals to 1.0.+  -> Int -- ^ If the argument is less or equal to 4, then 'Marker4s' is used, if it is greater than 4, then 'PolyMarkers' is used.+  -> PolyChoices+  -> PolyRhythmBasis+  -> [a]+  -> Double+rhythmicityPolyWeightedEF20 = rhythmicityPolyG02 (simpleEndF2)+{-# INLINE rhythmicityPolyWeightedEF20 #-}++rhythmicityPolyWeightedEF30+  :: (Ord a) => Double -- ^ The initial value starting from which it counts. Usually, equals to 1.0.+  -> Int -- ^ If the argument is less or equal to 4, then 'Marker4s' is used, if it is greater than 4, then 'PolyMarkers' is used.+  -> PolyChoices+  -> PolyRhythmBasis+  -> [a]+  -> Double+rhythmicityPolyWeightedEF30 = rhythmicityPolyG01 (simpleEndF3)+{-# INLINE rhythmicityPolyWeightedEF30 #-}  ------------------------------------------------------------------- 
phonetic-languages-rhythmicity.cabal view
@@ -2,7 +2,7 @@ -- For further documentation, see http://haskell.org/cabal/users-guide/  name:                phonetic-languages-rhythmicity-version:             0.7.0.0+version:             0.8.0.0 synopsis:            Allows to estimate the rhythmicity properties for the text description:         Allows to estimate (somewhat to say, evaluate) the rhythmicity properties for the text. Inspired by the ancient Greek and Latin poetry.