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
153
Issues
153
List
Board
Labels
Milestones
Merge Requests
9
Merge Requests
9
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
5cc28172
Commit
5cc28172
authored
Jun 09, 2022
by
qlobbe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change the candidate selection
parent
71bfa432
Pipeline
#2901
failed with stage
in 44 minutes and 25 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
TemporalMatching.hs
src/Gargantext/Core/Viz/Phylo/TemporalMatching.hs
+6
-5
No files found.
src/Gargantext/Core/Viz/Phylo/TemporalMatching.hs
View file @
5cc28172
...
...
@@ -248,10 +248,11 @@ getNextPeriods fil max' pId pIds =
getCandidates
::
PhyloGroup
->
[[(
PhyloGroupId
,[
Int
])]]
->
[[(
PhyloGroupId
,[
Int
])]]
getCandidates
ego
targets
=
map
(
\
groups'
->
-- filter (\g' -> (not . null) $ intersect (ego ^. phylo_groupNgrams) (snd g')
filter
(
\
g'
->
(
>
1
)
$
length
$
intersect
(
ego
^.
phylo_groupNgrams
)
(
snd
g'
)
)
groups'
)
targets
if
(
length
(
ego
^.
phylo_groupNgrams
))
>
1
then
map
(
\
groups'
->
filter
(
\
g'
->
(
>
1
)
$
length
$
intersect
(
ego
^.
phylo_groupNgrams
)
(
snd
g'
))
groups'
)
targets
else
map
(
\
groups'
->
filter
(
\
g'
->
(
not
.
null
)
$
intersect
(
ego
^.
phylo_groupNgrams
)
(
snd
g'
))
groups'
)
targets
matchGroupsToGroups
::
Int
->
[
PhyloPeriodId
]
->
Proximity
->
Double
->
Map
Date
Double
->
Map
Date
Cooc
->
[
PhyloGroup
]
->
[
PhyloGroup
]
...
...
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