Copyright | (c) OleksandrZhabenko 2020 |
---|---|
License | MIT |
Maintainer | olexandr543@yahoo.com |
Stability | Experimental |
Safe Haskell | None |
Language | Haskell2010 |
Generalization of the uniqueness-periods and uniqueness-periods-general packages functionality.
Synopsis
- data UniquenessGeneral1 a b
- class UniquenessGeneral a b where
- get :: a -> b
- type UniquenessGeneral2 a = Vector ([Int16], a)
- uniquenessPeriodsVector1 :: Eq a => Bool -> [a] -> Vector a -> UniquenessGeneral2 a
- uniquenessPeriodsVector2 :: Eq a => Bool -> [a] -> Vector a -> UniquenessGeneral2 a
- uniquenessPeriodsVector3 :: Eq a => [a] -> Vector a -> UniquenessGeneral2 a
- helpUPV3 :: [Int16] -> [Int16] -> [Int16] -> [Int16]
Documentation
data UniquenessGeneral1 a b Source #
Instances
(Eq a, Eq b) => Eq (UniquenessGeneral1 a b) Source # | |
Defined in String.Languages.UniquenessPeriods.VectorG (==) :: UniquenessGeneral1 a b -> UniquenessGeneral1 a b -> Bool # (/=) :: UniquenessGeneral1 a b -> UniquenessGeneral1 a b -> Bool # | |
Eq a => UniquenessGeneral (UniquenessGeneral1 Bool a) (UniquenessGeneral2 a) Source # | |
Defined in String.Languages.UniquenessPeriods.VectorG get :: UniquenessGeneral1 Bool a -> UniquenessGeneral2 a Source # |
class UniquenessGeneral a b where Source #
Instances
Eq a => UniquenessGeneral (UniquenessGeneral1 Bool a) (UniquenessGeneral2 a) Source # | |
Defined in String.Languages.UniquenessPeriods.VectorG get :: UniquenessGeneral1 Bool a -> UniquenessGeneral2 a Source # |
type UniquenessGeneral2 a = Vector ([Int16], a) Source #
uniquenessPeriodsVector1 :: Eq a => Bool -> [a] -> Vector a -> UniquenessGeneral2 a Source #
List of Int16
in the result is a list of indexes for the occurrences of the value of the a
(usually, a
is a sound representation or its duration).
The first Bool
argument defines whether to apply the filtering for not informative (possibly) "whitespace symbols" given as the
second argument list. The resulting Vector
is sorted in the order of the first occurrence of each of the a
(usually, a
is the sound
representation, or its duration, or some other its characteristics) in the given third argument.
uniquenessPeriodsVector2 :: Eq a => Bool -> [a] -> Vector a -> UniquenessGeneral2 a Source #
List of Int16
in the result is a list of distances between the consequential occurrences of the a
(usually, a
is a sound representation or its duration)
in the given Vector
. The first Bool
argument defines whether to apply the filtering for not informative
(possibly) "whitespace symbols" given as the second argument list. The resulting Vector
is sorted in the order of the first occurrence of each of
the a
(usually, a
is the sound representation or its duration, or some other its characteristics) in the given third argument.
uniquenessPeriodsVector3 :: Eq a => [a] -> Vector a -> UniquenessGeneral2 a Source #
List of Int16
in the result is a list of distances between the consequential occurrences of the a
(usually, a
is a sound representation or its duration)
in the given Vector
. But unlikely the uniquenessPeriodsVector2
function it finds out only the distances for the repeated not "whitespece symbols"
occurring in different sublists separated with these "whitespace symbols". Therefore, it is much more perceptable for the words order than the former one.
The resulting Vector
is sorted in the order of the first occurrence of each of
the a
(usually, a
is the sound representation or its duration, or some other its characteristics) in the given second argument.