module Gargantext.Core.Methods.Distances.Conditional
where
-import Data.Matrix hiding (identity)
-
import Data.List (sortOn)
-
import Data.Map (Map)
+import Data.Matrix hiding (identity)
+import Gargantext.Core.Viz.Graph.Utils
+import Gargantext.Prelude
import qualified Data.Map as M
-
import qualified Data.Set as S
-
import qualified Data.Vector as V
-import Gargantext.Prelude
-import Gargantext.Core.Viz.Graph.Utils
-
-------------------------------------------------------------------------
------------------------------------------------------------------------
-- | Optimisation issue
-
toBeOptimized :: (Num a, Fractional a, Ord a) => Matrix a -> Matrix a
toBeOptimized m = proba Col m
mapAll :: (a -> a) -> Matrix a -> Matrix a
mapAll f m = mapOn Col (\_ -> f) m
-
---------------------------------------------------------------
-- | Compute a distance from axis
-- xs = (sum Col x') - x'