~ubuntu-branches/ubuntu/oneiric/weka/oneiric

« back to all changes in this revision

Viewing changes to weka/core/matrix/LinearRegression.java

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner, Soeren Sonnenburg, Torsten Werner
  • Date: 2008-08-10 21:27:05 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080810212705-tr8etpnkdx2ziktp
Tags: 3.5.8-1
[ Soeren Sonnenburg ]
* Bump Standards Version to 3.8.0.
* Remove references to non-free Java in debian/copyright.

[ Torsten Werner ]
* new upstream release
* Switch to openjdk-6.
* Move package to main.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
 
15
15
package weka.core.matrix;
16
16
 
 
17
import weka.core.RevisionHandler;
 
18
import weka.core.RevisionUtils;
17
19
import weka.core.Utils;
18
20
 
19
21
/**
20
22
 * Class for performing (ridged) linear regression.
21
23
 *
22
24
 * @author Fracpete (fracpete at waikato dot ac dot nz)
23
 
 * @version $Revision: 1.3 $
 
25
 * @version $Revision: 1.4 $
24
26
 */
25
27
 
26
 
public class LinearRegression {
 
28
public class LinearRegression
 
29
  implements RevisionHandler {
27
30
 
28
31
  /** the coefficients */
29
32
  protected double[] m_Coefficients = null;
127
130
  public String toString() {
128
131
    return Utils.arrayToString(getCoefficients());
129
132
  }
 
133
  
 
134
  /**
 
135
   * Returns the revision string.
 
136
   * 
 
137
   * @return            the revision
 
138
   */
 
139
  public String getRevision() {
 
140
    return RevisionUtils.extract("$Revision: 1.4 $");
 
141
  }
130
142
}