gargantext-0.0.4.9.5: Search, map, share
Copyright(c) CNRS 2017-Present
LicenseAGPL + CECILL v3
Maintainerteam@gargantext.org
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Gargantext.Core.Viz.Phylo.PhyloTools

Description

 
Synopsis

Documentation

printIOMsg :: String -> IO () Source #

Io | --

To print an important message as an IO()

printIOComment :: String -> IO () Source #

To print a comment as an IO()

truncate' :: Double -> Int -> Double Source #

Misc | --

dropByIdx :: Int -> [a] -> [a] Source #

elemIndex' :: Eq a => a -> [a] -> Int Source #

commonPrefix :: Eq a => [a] -> [a] -> [a] -> [a] Source #

isRoots :: Ngrams -> Vector Ngrams -> Bool Source #

Foundations | --

Is this Ngrams a Foundations Root ?

ngramsToIdx :: [Ngrams] -> Vector Ngrams -> [Int] Source #

To transform a list of nrams into a list of foundation's index

sourcesToIdx :: [Text] -> Vector Text -> [Int] Source #

To transform a list of sources into a list of sources' index

ngramsToLabel :: Vector Ngrams -> [Int] -> Text Source #

To transform a list of Ngrams Indexes into a Label

ngramsToText :: Vector Ngrams -> [Int] -> [Text] Source #

To transform a list of Ngrams Indexes into a list of Text

periodsToYears :: [(Date, Date)] -> Set Date Source #

Time | --

To transform a list of periods into a set of Dates

toPeriods :: [Date] -> Int -> Int -> [(Date, Date)] Source #

toTimeScale :: [Date] -> Int -> [Date] Source #

Get a regular & ascendante timeScale from a given list of dates

isNested :: Eq a => [a] -> [a] -> Bool Source #

Fis | --

To find if l' is nested in l

keepFilled :: (Int -> [a] -> [a]) -> Int -> [a] -> [a] Source #

To filter Fis with small Support but by keeping non empty Periods

listToCombi' :: [a] -> [(a, a)] Source #

Cooc | --

listToEqual' :: Eq a => [a] -> [(a, a)] Source #

listToKeys :: Eq a => [a] -> [(a, a)] Source #

listToSeq :: Eq a => [a] -> [(a, a)] Source #

ngramsToCooc :: [Int] -> [Cooc] -> Cooc Source #

To build the local cooc matrix of each phylogroup

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

Clustering | --

relatedComponents :: Ord a => [[a]] -> [[a]] Source #

getSensibility :: Proximity -> Double Source #

Proximity | --

intersectInit :: Eq a => [a] -> [a] -> [a] -> [a] Source #

Branch | --