uniqueness-periods-vector-0.3.1.1: Generalization of the uniqueness-periods and uniqueness-periods-general packages functionality.

Copyright(c) OleksandrZhabenko 2020
LicenseMIT
StabilityExperimental
Safe HaskellNone
LanguageHaskell2010

String.Languages.UniquenessPeriods.Vector

Description

Maintainer : olexandr543@yahoo.com

Generalization of the uniqueness-periods and uniqueness-periods-general packages functionality.

Synopsis

Documentation

uniquenessPeriodsVector1 :: Eq a => Bool -> [a] -> Vector a -> UniquenessGeneral2 a Source #

List of Int 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 Int 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 Int 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.

helpUPV3 :: [Int] -> [Int] -> [Int] -> [Int] Source #

Is used inside the uniquenessPeriodsVector3. The first and the third list arguments of non-negative numbers (if not empty) must be sorted in the ascending order.