Package cc.mallet.regression
Class LeastSquares
- java.lang.Object
-
- cc.mallet.regression.LeastSquares
-
public class LeastSquares extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description LeastSquares(InstanceList data)
LeastSquares(InstanceList data, double regularization)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getNumParameters()
double
getParameter(int i)
void
getParameters(double[] buffer)
LinearRegression
getRegression()
static void
main(java.lang.String[] args)
void
printSummary()
Print a summary of the regression, similar to summary(lm(...)) in Rdouble[]
pValues()
java.lang.String
significanceStars(double p)
-
-
-
Constructor Detail
-
LeastSquares
public LeastSquares(InstanceList data)
-
LeastSquares
public LeastSquares(InstanceList data, double regularization)
-
-
Method Detail
-
pValues
public double[] pValues()
-
printSummary
public void printSummary()
Print a summary of the regression, similar to summary(lm(...)) in R
-
significanceStars
public java.lang.String significanceStars(double p)
-
getNumParameters
public int getNumParameters()
-
getParameter
public double getParameter(int i)
-
getParameters
public void getParameters(double[] buffer)
-
getRegression
public LinearRegression getRegression()
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-