Skip to content

Commit

Permalink
Make the methods private.
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Dec 11, 2014
1 parent dd415bc commit d3e0628
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ object MLUtils {
/**
* Returns the squared distance between two Vectors.
*/
def vectorSquaredDistance(v1: Vector, v2: Vector): Double = {
private[util] def vectorSquaredDistance(v1: Vector, v2: Vector): Double = {
var squaredDistance = 0.0
(v1, v2) match {
case (v1: SparseVector, v2: SparseVector) =>
Expand Down Expand Up @@ -304,7 +304,7 @@ object MLUtils {
/**
* Returns the squared distance between DenseVector and SparseVector.
*/
def vectorSquaredDistance(v1: SparseVector, v2: DenseVector): Double = {
private[util] def vectorSquaredDistance(v1: SparseVector, v2: DenseVector): Double = {
var squaredDistance = 0.0
v1.indices.foreach((idx) => {
val score = v1(idx) - v2(idx)
Expand Down

0 comments on commit d3e0628

Please sign in to comment.