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