|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.akutan.utilities.LeastSquares
public class LeastSquares
Simple class to hold algorithm for least squares fit
| Constructor Summary | |
|---|---|
LeastSquares()
|
|
| Method Summary | |
|---|---|
static double |
leastSquares(cern.colt.matrix.DoubleMatrix1D asset,
cern.colt.matrix.DoubleMatrix1D factors)
Performs a least squares fit to the data. |
static cern.colt.matrix.DoubleMatrix1D |
leastSquares(cern.colt.matrix.DoubleMatrix1D asset,
cern.colt.matrix.DoubleMatrix2D factors)
Performs a least squares fit to the data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LeastSquares()
| Method Detail |
|---|
public static double leastSquares(cern.colt.matrix.DoubleMatrix1D asset,
cern.colt.matrix.DoubleMatrix1D factors)
asset - Vector of asset returns Tx1factors - Matrix of factor returns TxN
public static cern.colt.matrix.DoubleMatrix1D leastSquares(cern.colt.matrix.DoubleMatrix1D asset,
cern.colt.matrix.DoubleMatrix2D factors)
asset - Vector of asset returns Tx1factors - Matrix of factor returns TxN
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||