|
Constructor Summary |
MapEstimator(int size)
Creates a new instance of MapEstimator where the number of independent
variables equals the number of dependent variables. |
MapEstimator(int rows,
int columns)
Create a MapEstimator for a rectangular matrix. |
|
Method Summary |
void |
addSample(double[] x,
double[] y)
Add sample vectors to the population |
protected void |
calcInterceptEstimate()
Calculate the estimate of the intercept vector, b, which relates y and x vectors:
y = M x + b
estimate: b = - M |
protected void |
calcMapEstimate()
Calculate the estimate of the map matrix, M, which relates y and x vectors:
y = M x + b
estimate: M = ( - ) / ( - ) |
double[][] |
getSimpleMap()
Get the map M where y = M x
estimate: M = / |
double[] |
interceptEstimate()
accessor to return the intercept estimate |
double[][] |
mapEstimate()
accessor to return the map estimate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_rows
protected int _rows
_columns
protected int _columns
_map
protected double[][] _map
_interceptVector
protected double[] _interceptVector
_xStats
protected ArrayStatistics _xStats
_yStats
protected ArrayStatistics _yStats
_xxStats
protected ArrayStatistics _xxStats
_yxStats
protected ArrayStatistics _yxStats
mapNeedsCalc
protected boolean mapNeedsCalc
interceptNeedsCalc
protected boolean interceptNeedsCalc
MapEstimator
public MapEstimator(int size)
- Creates a new instance of MapEstimator where the number of independent
variables equals the number of dependent variables.
MapEstimator
public MapEstimator(int rows,
int columns)
- Create a MapEstimator for a rectangular matrix.
- Parameters:
rows - one row for each dependent variablecolumns - one column for each independent variable
addSample
public void addSample(double[] x,
double[] y)
- Add sample vectors to the population
mapEstimate
public double[][] mapEstimate()
- accessor to return the map estimate
interceptEstimate
public double[] interceptEstimate()
- accessor to return the intercept estimate
getSimpleMap
public double[][] getSimpleMap()
- Get the map M where y = M x
estimate: M = /
calcMapEstimate
protected void calcMapEstimate()
- Calculate the estimate of the map matrix, M, which relates y and x vectors:
y = M x + b
estimate: M = ( - ) / ( - )
calcInterceptEstimate
protected void calcInterceptEstimate()
- Calculate the estimate of the intercept vector, b, which relates y and x vectors:
y = M x + b
estimate: b = - M