Skip to content

Commit 26ff543

Browse files
authored
Update ClusterPath.java
1 parent ecc0d90 commit 26ff543

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/au/edu/rmit/trajectory/clustering/kpaths/ClusterPath.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ public void accumulateLenghtOcc(){
269269
Collections.sort(sortedFrequency, Collections.reverseOrder());
270270
for (int length = minlength; length <= maxlength; length++) {// this is not right
271271
int occ = 0;
272-
for (int i = length; i > minlength; i--) {
272+
for (int i = length; i >= minlength; i--) {
273273
if (lengthOcc.contains(i))
274274
occ += lengthOcc.count(i)*(length - i);// add the extra length
275275
}

0 commit comments

Comments
 (0)