bijfit
Class DesignMatrixPoly

java.lang.Object
  extended by bijfit.DesignMatrix
      extended by bijfit.DesignMatrixPoly

public class DesignMatrixPoly
extends DesignMatrix

Design Matrix for polynomials, to be used in GeneralLeastSquares estimation. Copyright (c) 1999-2003, Michael Abramoff. All rights reserved.


Constructor Summary
DesignMatrixPoly(double[] xs, int n)
          Create a polynomial model design matrix of the n'th order.
DesignMatrixPoly(int k, int n)
          Create a polynomial design matrix from a sequence 1..k x's.
 
Method Summary
 
Methods inherited from class bijfit.DesignMatrix
getMatrix, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DesignMatrixPoly

public DesignMatrixPoly(double[] xs,
                        int n)
Create a polynomial model design matrix of the n'th order. Will contain n basis functions evaluated at all x's

Parameters:
xs - the x values for which the basis functions are calculated.

DesignMatrixPoly

public DesignMatrixPoly(int k,
                        int n)
Create a polynomial design matrix from a sequence 1..k x's. Will contain k polynomials of the n-th order.