]> Git — Sourcephile - gargantext.git/blob - src/Gargantext/Viz/Graph/Distances.hs
Merge branch 'dev' into dev-list-charts
[gargantext.git] / src / Gargantext / Viz / Graph / Distances.hs
1 {-|
2 Module : Gargantext.Graph.Distances
3 Description : Distance management tools
4 Copyright : (c) CNRS, 2017-Present
5 License : AGPL + CECILL v3
6 Maintainer : team@gargantext.org
7 Stability : experimental
8 Portability : POSIX
9
10 -}
11
12 {-# LANGUAGE Strict #-}
13
14 module Gargantext.Viz.Graph.Distances
15 where
16
17
18 import Data.Array.Accelerate
19 import Gargantext.Viz.Graph.Distances.Matrice (measureConditional, distributional)
20
21 data Distance = Conditional | Distributional
22
23
24 measure :: Distance -> Matrix Int -> Matrix Double
25 measure Conditional = measureConditional
26 measure Distributional = distributional
27
28
29
30