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

Gargantext.Core.Viz.Phylo.PhyloTools

Description

 
Synopsis

Documentation

printIOMsg :: String -> IO () #

Io | --

To print an important message as an IO()

printIOComment :: String -> IO () #

To print a comment as an IO()

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

Misc | --

roundToStr :: (PrintfArg a, Floating a) => Int -> a -> String #

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

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

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

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

Foundations | --

Is this Ngrams a Foundations Root ?

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

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

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

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

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

To transform a list of Ngrams Indexes into a Label

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

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

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

Time | --

To transform a list of periods into a set of Dates

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

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

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

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

Fis | --

To find if l' is nested in l

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

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

tracePhylo :: (Print s, IsString s) => s -> a -> a #

General workhorse to use in lieu of trace. It decides at compile time whether or not debug logs are enabled.

getCliqueSupport :: Cluster -> Int #

Cluster| --

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

Cooc | --

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

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

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

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

To build the local cooc matrix of each phylogroup

ngramsToDensity :: [Int] -> [Cooc] -> Map Int Double -> Double #

Density | --

To build the density of a phylogroup density is defined in Callon M, Courtial JP, Laville F (1991) Co-word analysis as a tool for describing the network of interaction between basic and technological research: The case of polymer chemistry. Scientometric 22: 155–205.

findMaxima :: [(Double, Double)] -> [Bool] #

Defaults | --

find the local maxima in a list of values

toChunk :: Int -> [a] -> [[a]] #

split a list into chunks of size n

toAverageDegree :: Cooc -> Vector Ngrams -> Double #

To compute the average degree from a cooc matrix http://networksciencebook.com/chapter/2#degree

regimeToDefaultLevel :: Cooc -> Vector Ngrams -> Double #

Use the giant component regime to estimate the default level http://networksciencebook.com/chapter/3#networks-supercritical

sumtest :: [Int] -> [Int] -> Int #

getGroupId :: PhyloGroup -> PhyloGroupId #

PhyloGroup | --

groupByField :: Ord a => (PhyloGroup -> a) -> [PhyloGroup] -> Map a [PhyloGroup] #

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

Clustering | --

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

getSensibility :: PhyloSimilarity -> Double #

Similarity | --

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

Branch | --