Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Dissiml
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Guyslain Naves
Dissiml
Commits
e34fa816
Commit
e34fa816
authored
1 year ago
by
Guyslain Naves
Browse files
Options
Downloads
Patches
Plain Diff
ajout du nouvel algo dans le benchmark
parent
63e01089
No related branches found
No related tags found
No related merge requests found
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
bin/bench/dune
+1
-0
1 addition, 0 deletions
bin/bench/dune
bin/bench/robench.ml
+9
-2
9 additions, 2 deletions
bin/bench/robench.ml
bin/dune
+1
-1
1 addition, 1 deletion
bin/dune
bin/main.ml
+3
-2
3 additions, 2 deletions
bin/main.ml
test/propertytest/pqtree.ml
+1
-1
1 addition, 1 deletion
test/propertytest/pqtree.ml
with
15 additions
and
6 deletions
bin/bench/dune
+
1
−
0
View file @
e34fa816
...
...
@@ -7,6 +7,7 @@
DissimilarityLib
RandomDissimilarity
Recognition
ChainLib
core core_unix.command_unix core_bench
)
)
This diff is collapsed.
Click to expand it.
bin/bench/robench.ml
+
9
−
2
View file @
e34fa816
...
...
@@ -2,7 +2,7 @@ open! Core_bench
open
!
CopointLib
open
!
RandomDissimilarity
open
!
DissimilarityLib
open
!
ChainLib
let
imperative_copoint_algorithm
diss
=
diss
...
...
@@ -19,6 +19,12 @@ let pivotpair_algorithm diss =
Recognition
.
Pivotpair
.
algo
diss
(
fun
i
->
i
)
|>
ignore
let
chain_insertion_algorithm
diss
=
diss
|>
RobinsonByChain
.
find_compatible_order
|>
ignore
let
toeplitz
~
k
dim
=
Toeplitz
.
toeplitz012
~
n
:
dim
~
k
:
(
min
k
(
dim
-
2
))
...
...
@@ -45,7 +51,8 @@ let algorithms =
[
Y
(
"copoint-imp"
,
imperative_copoint_algorithm
);
Y
(
"copoint-fun"
,
functional_copoint_algorithm
);
Y
(
"pivotpair"
,
pivotpair_algorithm
)
Y
(
"pivotpair"
,
pivotpair_algorithm
);
Y
(
"chain-insertion"
,
chain_insertion_algorithm
)
]
...
...
This diff is collapsed.
Click to expand it.
bin/dune
+
1
−
1
View file @
e34fa816
(executable
(public_name copoint)
(name main)
(libraries RobinsonLib CopointLib DissimilarityLib Recognition))
(libraries RobinsonLib CopointLib DissimilarityLib Recognition
ChainLib
))
This diff is collapsed.
Click to expand it.
bin/main.ml
+
3
−
2
View file @
e34fa816
...
...
@@ -46,4 +46,5 @@ let _main =
let
_algo1
diss
=
RobinsonCCNP
.
find_compatible_order
diss
in
let
_algo2
diss
=
ImperativeCCNP
.
find_compatible_order
diss
|>
Option
.
map
Array
.
to_list
in
let
_algo3
diss
=
Recognition
.
Pivotpair
.
algo
diss
(
fun
i
->
i
)
in
_from_stdin
_algo1
let
_algo4
diss
=
ChainLib
.
RobinsonByChain
.
find_compatible_order
diss
in
_from_stdin
_algo3
This diff is collapsed.
Click to expand it.
test/propertytest/pqtree.ml
+
1
−
1
View file @
e34fa816
...
...
@@ -12,7 +12,7 @@ let frontier_is_a_contained_permutation pqtree =
let
test_frontier_is_a_contained_permutation
=
QCheck2
.
Test
.
make
~
name
:
"The frontier of a PQ-tree is
a
contained in that PQ-tree"
~
name
:
"The frontier of a PQ-tree is contained in that PQ-tree"
~
print
pqtree_gen
frontier_is_a_contained_permutation
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment