Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Przemyslaw Kaminski
haskell-gargantext
Commits
1e877937
Commit
1e877937
authored
Sep 21, 2020
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TextFlow] Type rename (records missing)
parent
424213e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Metrics.hs
src/Gargantext/Core/Text/Metrics.hs
+4
-4
No files found.
src/Gargantext/Core/Text/Metrics.hs
View file @
1e877937
...
...
@@ -57,8 +57,8 @@ scored = map2scored . (pcaReduceTo (Dimension 2)) . scored2map
-- TODO change type with (x,y)
data
Scored
ts
=
Scored
{
_scored_terms
::
!
ts
,
_scored_
incEx
c
::
!
GenericityInclusion
,
_scored_spe
Gen
::
!
SpecificityExclusion
,
_scored_
genIn
c
::
!
GenericityInclusion
,
_scored_spe
Exc
::
!
SpecificityExclusion
}
deriving
(
Show
)
localMetrics'
::
Ord
t
=>
Map
(
t
,
t
)
Int
->
Map
t
(
Vec
.
Vector
Double
)
...
...
@@ -87,8 +87,8 @@ scored' m = zipWith (\(_,t) (inc,spe) -> Scored t inc spe) (Map.toList fi) score
takeScored
::
Ord
t
=>
MapListSize
->
InclusionSize
->
Map
(
t
,
t
)
Int
->
([
t
],[
t
])
takeScored
listSize
incSize
=
both
(
map
_scored_terms
)
.
takeLinear
listSize
incSize
_scored_
speGen
_scored_
inc
Exc
.
takeLinear
listSize
incSize
_scored_
genInc
_scored_
spe
Exc
.
scored
...
...
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