Skip to content

Commit

Permalink
Fixed a Scala style error.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangjiajin committed Jul 8, 2015
1 parent a2eb14c commit 89bc368
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ class PrefixSpan(
allPatterns
}

private def getAbsoluteMinSupport(sequences: RDD[Array[Int]]): Int = {
private def getAbsoluteMinSupport(sequences: RDD[Array[Int]]): Int = {
val result = if (minSupport <= 0) {
0
}else {
} else {
val count = sequences.count()
val support = if (minSupport <= 1) minSupport else 1
(support * count).toInt
Expand Down

0 comments on commit 89bc368

Please sign in to comment.