packages feed

uniqueness-periods-vector-properties (empty) → 0.1.0.0

raw patch · 5 files changed

+83/−0 lines, 5 filesdep +basedep +uniqueness-periods-vectordep +vectorsetup-changed

Dependencies added: base, uniqueness-periods-vector, vector

Files

+ ChangeLog.md view
@@ -0,0 +1,5 @@+# Revision history for uniqueness-periods-vector-properties++## 0.1.0.0 -- 2020-09-01++* First version. Released on an unsuspecting world.
+ LICENSE view
@@ -0,0 +1,20 @@+Copyright (c) 2020 OleksandrZhabenko++Permission is hereby granted, free of charge, to any person obtaining+a copy of this software and associated documentation files (the+"Software"), to deal in the Software without restriction, including+without limitation the rights to use, copy, modify, merge, publish,+distribute, sublicense, and/or sell copies of the Software, and to+permit persons to whom the Software is furnished to do so, subject to+the following conditions:++The above copyright notice and this permission notice shall be included+in all copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ Languages/UniquenessPeriods/Vector/Properties.hs view
@@ -0,0 +1,30 @@+-- |+-- Module      :  Languages.UniquenessPeriods.Vector.Properties+-- Copyright   :  (c) OleksandrZhabenko 2020+-- License     :  MIT+-- Stability   :  Experimental+-- Maintainer  :  olexandr543@yahoo.com+--+-- Generalization of the functionality of the DobutokO.Poetry.Norms +-- and DobutokO.Poetry.Norms.Extended modules +-- from the @dobutokO-poetry@ package. ++module Languages.UniquenessPeriods.Vector.Properties where++import qualified Data.Vector as V+import String.Languages.UniquenessPeriods.Vector++-- | The function is inteded to be used after 'uniquenessPeriodsVector2' application to obtain the first argument. So generally, it is used as follows:+-- > +-- > diverse . uniquenessPeriodsVector2 y whspss $ v +-- +-- The maximum value of the function corresponds to possibly more smoothly changing and mixing elements in the list. If they are used to represent +-- sounds (especially some text, may be poetic) then the resulting maximum possible 'diverse' value corresponds to more \"diverse\" (phonetically) text intervals. +-- Is somewhat similar to the @norm4@ function from the DobutokO.Poetyr.Norms module from @dobutokO-poetry@ package +-- See: https://hackage.haskell.org/package/dobutokO-poetry-general-0.1.0.0/docs/DobutokO-Poetry-Norms.html.+diverse :: +  Eq a => UniquenessGeneral2 a -- ^ Is gotten after the application of the 'uniquenessPeriodsVector2'.+  -> Int  -- ^ The resulting value.+diverse v +  | null v = 0+  | otherwise = V.sum . V.map (\(x,_) -> if null x then 0::Int else minimum x) $ v
+ Setup.hs view
@@ -0,0 +1,2 @@+import Distribution.Simple+main = defaultMain
+ uniqueness-periods-vector-properties.cabal view
@@ -0,0 +1,26 @@+-- Initial uniqueness-periods-vector-properties.cabal generated by cabal+-- init.  For further documentation, see+-- http://haskell.org/cabal/users-guide/++name:                uniqueness-periods-vector-properties+version:             0.1.0.0+synopsis:            Metrics for the maximum element for the uniqueness-periods-vector packages family.+description:         Metrics for the maximum element for the uniqueness-periods-vector packages family. Generalization of the DobutokO.Poetry.Norms and DobutokO.Poetry.Norms.Extended modules from dobuotokO-poetry package.+homepage:            https://hackage.haskell.org/package/uniqueness-periods-vector-properties+license:             MIT+license-file:        LICENSE+author:              OleksandrZhabenko+maintainer:          olexandr543@yahoo.com+copyright:           Oleksandr Zhabenko+category:            Language, Game, Math+build-type:          Simple+extra-source-files:  ChangeLog.md+cabal-version:       >=1.10++library+  exposed-modules:     Languages.UniquenessPeriods.Vector.Properties+  -- other-modules:+  -- other-extensions:+  build-depends:       base >=4.7 && <4.15, vector >=0.11 && <0.14, uniqueness-periods-vector >=0.1 && <1+  -- hs-source-dirs:+  default-language:    Haskell2010