Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MH-Tree
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
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
disa
public
Hulls
MH-Tree
Commits
c8f5e882
There was an error fetching the commit references. Please try again later.
Verified
Commit
c8f5e882
authored
4 years ago
by
David Procházka
Browse files
Options
Downloads
Patches
Plain Diff
FIX: updated constructor arguments
parent
a1afa79d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/mhtree/Histogram.java
+1
-2
1 addition, 2 deletions
src/mhtree/Histogram.java
src/mhtree/MHTree.java
+4
-4
4 additions, 4 deletions
src/mhtree/MHTree.java
with
5 additions
and
6 deletions
src/mhtree/Histogram.java
+
1
−
2
View file @
c8f5e882
...
...
@@ -5,7 +5,6 @@ import messif.objects.LocalAbstractObject;
import
java.util.Collections
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Set
;
public
class
Histogram
{
private
final
HashMap
<
Integer
,
HashMap
<
Long
,
Integer
>>
levelToHullsCoveredToObjectCount
=
new
HashMap
<>();
...
...
@@ -17,7 +16,7 @@ public class Histogram {
Histogram
histogram
=
new
Histogram
();
for
(
int
level
=
1
;
level
<=
x
.
getHeight
()
+
1
;
level
++)
{
Se
t
<
Node
>
levelNodes
=
x
.
getNodesOnLevel
(
level
);
Lis
t
<
Node
>
levelNodes
=
x
.
getNodesOnLevel
(
level
);
for
(
LocalAbstractObject
object
:
x
.
getObjects
())
{
long
coveredObjectCount
=
levelNodes
.
stream
()
...
...
This diff is collapsed.
Click to expand it.
src/mhtree/MHTree.java
+
4
−
4
View file @
c8f5e882
...
...
@@ -35,11 +35,11 @@ public class MHTree extends Algorithm implements Serializable {
@AlgorithmConstructor
(
description
=
"MH-Tree"
,
arguments
=
{
"list of objects"
,
"number of objects in leaf node"
,
"number of objects in
a
leaf node"
,
"arity"
,
"number of threads used in precomputing distances"
,
"insert type"
,
"distance measure"
,
"object to node distance type"
,
"node to node distance type"
,
"storage class for buckets"
,
"storage class parameters"
})
...
...
@@ -130,7 +130,7 @@ public class MHTree extends Algorithm implements Serializable {
System
.
out
.
println
(
"Number of hull objects in each level:"
);
for
(
int
level
=
1
;
level
<=
root
.
getHeight
()
+
1
;
level
++)
{
Se
t
<
Node
>
levelNodes
=
root
.
getNodesOnLevel
(
level
);
Lis
t
<
Node
>
levelNodes
=
root
.
getNodesOnLevel
(
level
);
System
.
out
.
println
(
"- Level "
+
level
+
" -> "
+
levelNodes
.
stream
().
mapToInt
(
n
->
n
.
getHullObjects
().
size
()).
summaryStatistics
());
}
...
...
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