Copyright | (c) CNRS 2017-Present |
---|---|
License | AGPL + CECILL v3 |
Maintainer | team@gargantext.org |
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- dotToFile :: FilePath -> DotGraph DotId -> IO ()
- dotToString :: DotGraph DotId -> [Char]
- dynamicToColor :: Int -> Attribute
- pickLabelColor :: [Int] -> Attribute
- toDotLabel :: Text -> Label
- toAttr :: AttributeName -> Text -> CustomAttribute
- metaToAttr :: Map Text [Double] -> [CustomAttribute]
- groupIdToDotId :: PhyloGroupId -> DotId
- branchIdToDotId :: PhyloBranchId -> DotId
- periodIdToDotId :: Period -> DotId
- branchToDotNode :: PhyloBranch -> Int -> Dot DotId
- periodToDotNode :: (Date, Date) -> (Text, Text) -> Dot DotId
- groupToDotNode :: Vector Ngrams -> PhyloGroup -> Int -> Dot DotId
- toDotEdge' :: DotId -> DotId -> [Char] -> [Char] -> EdgeType -> Dot DotId
- toDotEdge :: DotId -> DotId -> [Char] -> EdgeType -> Dot DotId
- mergePointers :: [PhyloGroup] -> Map (PhyloGroupId, PhyloGroupId) Double
- mergePointersMemory :: [PhyloGroup] -> [((PhyloGroupId, PhyloGroupId), (Double, Double))]
- mergeAncestors :: [PhyloGroup] -> [((PhyloGroupId, PhyloGroupId), Double)]
- toBid :: PhyloGroup -> [PhyloBranch] -> Int
- exportToDot :: Phylo -> PhyloExport -> DotGraph DotId
- filterByBranchSize :: Double -> PhyloExport -> PhyloExport
- processFilters :: [Filter] -> Quality -> PhyloExport -> PhyloExport
- branchToIso :: [PhyloBranch] -> [PhyloBranch]
- branchToIso' :: Double -> Double -> [PhyloBranch] -> [PhyloBranch]
- sortByHierarchy :: Int -> [PhyloBranch] -> [PhyloBranch]
- sortByBirthDate :: Order -> PhyloExport -> PhyloExport
- processSort :: Sort -> SeaElevation -> PhyloExport -> PhyloExport
- conditional :: Ord a => Map (a, a) Double -> a -> a -> Double
- genericity :: Map (Int, Int) Double -> [Int] -> Int -> Double
- specificity :: Map (Int, Int) Double -> [Int] -> Int -> Double
- inclusion :: Map (Int, Int) Double -> [Int] -> Int -> Double
- ngramsMetrics :: Phylo -> PhyloExport -> PhyloExport
- branchDating :: PhyloExport -> PhyloExport
- processMetrics :: Phylo -> PhyloExport -> PhyloExport
- nk :: Int -> [[Int]] -> Int
- tf :: Int -> [[Int]] -> Double
- idf :: Int -> [[Int]] -> Double
- findTfIdf :: [[Int]] -> [(Int, Double)]
- findEmergences :: [PhyloGroup] -> Map Int Double -> [(Int, Double)]
- mostEmergentTfIdf :: Int -> Map Int Double -> Vector Ngrams -> PhyloExport -> PhyloExport
- getNthMostMeta :: Int -> [Double] -> [Int] -> [Int]
- mostInclusive :: Int -> Vector Ngrams -> PhyloExport -> PhyloExport
- mostEmergentInclusive :: Int -> Vector Ngrams -> PhyloExport -> PhyloExport
- processLabels :: [PhyloLabel] -> Vector Ngrams -> Map Int Double -> PhyloExport -> PhyloExport
- toDynamics :: FdtId -> [PhyloGroup] -> PhyloGroup -> Map FdtId (Date, Date) -> Double
- type FdtId = Int
- processDynamics :: [PhyloGroup] -> [PhyloGroup]
- getGroupThr :: Double -> PhyloGroup -> Double
- toAncestor :: Double -> Map Int Double -> PhyloSimilarity -> Double -> [PhyloGroup] -> PhyloGroup -> PhyloGroup
- headsToAncestors :: Double -> Map Int Double -> PhyloSimilarity -> Double -> [PhyloGroup] -> [PhyloGroup] -> [PhyloGroup]
- toHorizon :: Phylo -> Phylo
- getPreviousChildIds :: Scale -> Int -> Period -> [Period] -> Phylo -> [PhyloGroupId]
- toPhyloExport :: Phylo -> DotGraph DotId
- traceExportBranches :: [PhyloBranch] -> [PhyloBranch]
- tracePhyloAncestors :: [[PhyloGroup]] -> [[PhyloGroup]]
- tracePhyloInfo :: Phylo -> Phylo
- traceExportGroups :: [PhyloGroup] -> [PhyloGroup]
Documentation
dotToString :: DotGraph DotId -> [Char] #
dynamicToColor :: Int -> Attribute #
pickLabelColor :: [Int] -> Attribute #
toDotLabel :: Text -> Label #
toAttr :: AttributeName -> Text -> CustomAttribute #
metaToAttr :: Map Text [Double] -> [CustomAttribute] #
groupIdToDotId :: PhyloGroupId -> DotId #
branchIdToDotId :: PhyloBranchId -> DotId #
periodIdToDotId :: Period -> DotId #
branchToDotNode :: PhyloBranch -> Int -> Dot DotId #
groupToDotNode :: Vector Ngrams -> PhyloGroup -> Int -> Dot DotId #
mergePointers :: [PhyloGroup] -> Map (PhyloGroupId, PhyloGroupId) Double #
mergePointersMemory :: [PhyloGroup] -> [((PhyloGroupId, PhyloGroupId), (Double, Double))] #
mergeAncestors :: [PhyloGroup] -> [((PhyloGroupId, PhyloGroupId), Double)] #
toBid :: PhyloGroup -> [PhyloBranch] -> Int #
exportToDot :: Phylo -> PhyloExport -> DotGraph DotId #
filterByBranchSize :: Double -> PhyloExport -> PhyloExport #
Filter | --
processFilters :: [Filter] -> Quality -> PhyloExport -> PhyloExport #
branchToIso :: [PhyloBranch] -> [PhyloBranch] #
Sort | --
branchToIso' :: Double -> Double -> [PhyloBranch] -> [PhyloBranch] #
sortByHierarchy :: Int -> [PhyloBranch] -> [PhyloBranch] #
sortByBirthDate :: Order -> PhyloExport -> PhyloExport #
processSort :: Sort -> SeaElevation -> PhyloExport -> PhyloExport #
conditional :: Ord a => Map (a, a) Double -> a -> a -> Double #
Metrics | --
Return the conditional probability of i knowing j
genericity :: Map (Int, Int) Double -> [Int] -> Int -> Double #
Return the genericity score of a given ngram
specificity :: Map (Int, Int) Double -> [Int] -> Int -> Double #
Return the specificity score of a given ngram
inclusion :: Map (Int, Int) Double -> [Int] -> Int -> Double #
Return the inclusion score of a given ngram
ngramsMetrics :: Phylo -> PhyloExport -> PhyloExport #
branchDating :: PhyloExport -> PhyloExport #
processMetrics :: Phylo -> PhyloExport -> PhyloExport #
findEmergences :: [PhyloGroup] -> Map Int Double -> [(Int, Double)] #
mostEmergentTfIdf :: Int -> Map Int Double -> Vector Ngrams -> PhyloExport -> PhyloExport #
mostInclusive :: Int -> Vector Ngrams -> PhyloExport -> PhyloExport #
mostEmergentInclusive :: Int -> Vector Ngrams -> PhyloExport -> PhyloExport #
processLabels :: [PhyloLabel] -> Vector Ngrams -> Map Int Double -> PhyloExport -> PhyloExport #
toDynamics :: FdtId -> [PhyloGroup] -> PhyloGroup -> Map FdtId (Date, Date) -> Double #
Dynamics | --
processDynamics :: [PhyloGroup] -> [PhyloGroup] #
getGroupThr :: Double -> PhyloGroup -> Double #
horizon | --
toAncestor :: Double -> Map Int Double -> PhyloSimilarity -> Double -> [PhyloGroup] -> PhyloGroup -> PhyloGroup #
headsToAncestors :: Double -> Map Int Double -> PhyloSimilarity -> Double -> [PhyloGroup] -> [PhyloGroup] -> [PhyloGroup] #
getPreviousChildIds :: Scale -> Int -> Period -> [Period] -> Phylo -> [PhyloGroupId] #
toPhyloExport :: Phylo -> DotGraph DotId #
phyloExport | --
traceExportBranches :: [PhyloBranch] -> [PhyloBranch] #
tracePhyloAncestors :: [[PhyloGroup]] -> [[PhyloGroup]] #
tracePhyloInfo :: Phylo -> Phylo #
traceExportGroups :: [PhyloGroup] -> [PhyloGroup] #