public abstract class LeastSquaresTermBase extends QPTermBase implements LeastSquaresTerm
Modifier and Type | Field and Description |
---|---|
static double |
defaultWeight |
myProps
Constructor and Description |
---|
LeastSquaresTermBase() |
LeastSquaresTermBase(double weight) |
Modifier and Type | Method and Description |
---|---|
void |
addRows(MatrixNd H,
VectorNd f)
Appends the provided rows to the cost term
|
void |
getQP(MatrixNd Q,
VectorNd P,
double t0,
double t1)
Sums this term to the arguments Q and P
|
int |
getTerm(MatrixNd H,
VectorNd f,
int rowoff,
double t0,
double t1)
Gets the current least squares term and returns the index of the last row
|
void |
setSize(int size) |
dispose, getAllPropertyInfo, getProperty, getSize, getWeight, setWeight
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRowSize
getAllPropertyInfo, getProperty
public static final double defaultWeight
public LeastSquaresTermBase()
public LeastSquaresTermBase(double weight)
public void addRows(MatrixNd H, VectorNd f)
H
- left hand sidef
- right hand sidepublic void getQP(MatrixNd Q, VectorNd P, double t0, double t1)
QPTerm
getQP
in interface QPTerm
getQP
in class QPTermBase
Q
- the Quadratic termP
- the Proportional termpublic int getTerm(MatrixNd H, VectorNd f, int rowoff, double t0, double t1)
getTerm
in interface LeastSquaresTerm
H
- container to store the left hand sidef
- container to store the right hand siderowoff
- start from this rowt0
- t1
- public void setSize(int size)
setSize
in interface QPTerm
setSize
in class QPTermBase