Skip to content

Commit

Permalink
rcond documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
rezazadeh committed Mar 20, 2014
1 parent dbf7797 commit 8fb0015
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions mllib/src/main/scala/org/apache/spark/mllib/linalg/SVD.scala
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class SVD {
private var k = 1
private var computeU = true

// Singular values smaller than this value
// relative to the largest singular value are considered zero
// All singular values smaller than rcond * sigma(0)
// are treated as zero, where sigma(0) is the largest singular value.
private var rCond = 1e-9

/**
Expand All @@ -43,8 +43,9 @@ class SVD {
}

/**
* Singular values smaller than this value
* relative to the largest singular value are considered zero
* Sets the reciprocal condition number (rcond). All singular values
* smaller than rcond * sigma(0) are treated as zero,
* where sigma(0) is the largest singular value.
*/
def setReciprocalConditionNumber(smallS: Double): SVD = {
this.rCond = smallS
Expand Down

0 comments on commit 8fb0015

Please sign in to comment.