Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
147
Issues
147
List
Board
Labels
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
haskell-gargantext
Commits
24171124
Commit
24171124
authored
May 28, 2018
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] minimax with accelerate
parent
501a109d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Matrice.hs
src/Gargantext/Viz/Graph/Distances/Matrice.hs
+4
-4
No files found.
src/Gargantext/Viz/Graph/Distances/Matrice.hs
View file @
24171124
...
...
@@ -112,12 +112,12 @@ conditional m = (run $ ie (use m), run $ sg (use m))
distributional
::
Matrix
Double
->
Matrix
Double
distributional
m
=
run
$
filter
$
ri
(
use
m
)
where
n
=
rank
m
n
=
rank'
m
miniMax
m
=
map
(
\
x
->
ifThenElse
(
x
>
(
the
$
minimum
$
maximum
m
))
x
0
)
m
filter
m
=
zipWith
(
\
a
b
->
max
a
b
)
m
(
transpose
m
)
--miniMax m = map (\x -> if unlift ( x > (unlift $ minimum $ maximum m)) then x else 0) m
ri
mat
=
zipWith
(
/
)
mat1
mat2
where
mat1
=
mkSum
n
$
zipWith
min
(
mi
mat
)
(
mi
$
transpose
mat
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment