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
12 {-# LANGUAGE Strict #-}
14 module Gargantext.Viz.Graph.Distances
18 import Data.Array.Accelerate
19 import Gargantext.Viz.Graph.Distances.Matrice (measureConditional, distributional)
21 data Distance = Conditional | Distributional
24 measure :: Distance -> Matrix Int -> Matrix Double
25 measure Conditional = measureConditional
26 measure Distributional = distributional