Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Alignment API
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
moex
Alignment API
Commits
1cdb569c
"...public/validation/hl7v2-validator.git" did not exist on "573bbf52e96252a8ddf595744ce3008d5042135a"
Commit
1cdb569c
authored
17 years ago
by
Jérôme Euzenat
Browse files
Options
Downloads
Patches
Plain Diff
- some more clean up after conflict
parent
c2e12be4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/fr/inrialpes/exmo/align/impl/HungarianAlgorithm.java
+2
-30
2 additions, 30 deletions
src/fr/inrialpes/exmo/align/impl/HungarianAlgorithm.java
with
2 additions
and
30 deletions
src/fr/inrialpes/exmo/align/impl/HungarianAlgorithm.java
+
2
−
30
View file @
1cdb569c
...
...
@@ -36,10 +36,8 @@
* [Created in Eclipse 3.1M6 (www.eclipse.org).]
*
* Modifications by Jérôme Euzenat for integrating within Alignment API:
* (C) INRIA Rhône-Alpes, 2005, 2007
* 1) suppressed Java 1.5 dependencies (marked //JE1.5:)
* 1') suppressed all the testing features (main)
* 2) stripped some i/o stuff and main (JEstrip)
* (C) INRIA Rhône-Alpes, 2005, 2007-2008
* 1) suppressed all the testing features and main
* 3) included under package fr.inrialpes.exmo.align.impl
* 4) Suppressed the copy of the structure (we use a fresh structure for that)
* 5) connected with alignment generation
...
...
@@ -102,8 +100,6 @@ public class HungarianAlgorithm {
return
new
int
[
0
][
0
];
}
// System.err.println("size = " + costPrm.length + " x " + costPrm[0].length);
// do we need to extend?
int
columnNb
=
Math
.
max
(
costPrm
.
length
,
costPrm
[
0
].
length
);
double
[][]
cost
=
new
double
[
costPrm
.
length
][
columnNb
];
// The real cost array
...
...
@@ -118,14 +114,6 @@ public class HungarianAlgorithm {
cost
[
a
][
b
]
=
0.0
;
}
/*
for ( int a = 0; a<cost.length; a++){
double[] line = cost[a];
for ( int b=0; b< line.length; b++) System.err.print(", "+cost[a][b]);
System.err.println();
}
*/
// System.err.println("HG-1");
if
(
sumType
.
equalsIgnoreCase
(
"max"
)){
//Then array is weight array. Must change to cost.
double
maxWeight
=
findLargest
(
cost
);
...
...
@@ -447,20 +435,4 @@ public class HungarianAlgorithm {
return
minval
;
}
public
static
void
main
(
String
args
[])
{
double
[][]
cost
=
{};
//{0.0, 0.0, 0.0, 0.0}, {0.0, 0.0, 0.0, 0.0},{0.0, 0.0, 0.0, 0.0}, {0.0, 0.0, 0.0, 0.0}, {0.0, 0.0, 0.0, 0.0}, {0.0, 0.0, 0.0, 0.0},{0.0, 0.0, 0.0, 0.0}, {0.0, 0.0, 0.0, 0.0}}
int
[][]
resultat
;
resultat
=
hgAlgorithm
(
cost
,
"min"
);
for
(
int
i
=
0
;
i
<
resultat
.
length
;
i
++){
for
(
int
j
=
0
;
j
<
resultat
[
i
].
length
;
j
++){
System
.
err
.
print
(
" "
+
resultat
[
i
][
j
]);
}
System
.
err
.
println
();
}
}
}
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