bijfit
Class GeneralLinearLeastSquares

java.lang.Object
  |
  +--bijfit.GeneralLinearLeastSquares

public class GeneralLinearLeastSquares
extends java.lang.Object


Constructor Summary
GeneralLinearLeastSquares()
           
 
Method Summary
static double[] fit(double[] db, DesignMatrix dm)
          General least squares fit (with design matrix dm) to vector b.
static float[][] fit(float[][] b, DesignMatrix dm)
          General least squares fit (with design matrix dm) to a matrix of vectors b.
static float[] fit(float[] b, DesignMatrix dm)
          General least squares fit (with design matrix dm) to vector b.
static void test()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneralLinearLeastSquares

public GeneralLinearLeastSquares()
Method Detail

fit

public static float[] fit(float[] b,
                          DesignMatrix dm)
General least squares fit (with design matrix dm) to vector b.
Parameters:
b - the data vector to fit the model dm to.
dm - the design matrix of the model.
Returns:
the fitted coefficients for the model dm as a float[].

fit

public static double[] fit(double[] db,
                           DesignMatrix dm)
General least squares fit (with design matrix dm) to vector b.
Parameters:
b - the data vector to fit the model dm to.
dm - the design matrix of the model.
Returns:
the fitted coefficients for the model dm as a double[].

fit

public static float[][] fit(float[][] b,
                            DesignMatrix dm)
General least squares fit (with design matrix dm) to a matrix of vectors b.
Parameters:
b - the vector to fit the model a to.
dm - the design matrix of the model.
Returns:
a float[][] matrix of fitted coefficients for the model dm.

test

public static void test()