Sets the tolerance for errors in approximating a data point by projecting it onto the set of basis vectors. In general: as the tolerance increases the sparsity of the model increases but the accuracy may go down. Values in the range 10 x ∀ x ∈ {-1, -2, -3, -4} often work w
(double v)
| 102 | * @param v the approximation tolerance |
| 103 | */ |
| 104 | public void setErrorTolerance(double v) |
| 105 | { |
| 106 | if(Double.isNaN(v) || Double.isInfinite(v) || v <= 0) |
| 107 | throw new IllegalArgumentException("The error tolerance must be a positive constant, not " + v); |
| 108 | this.errorTolerance = v; |
| 109 | } |
| 110 | |
| 111 | /** |
| 112 | * Returns the projection approximation tolerance |