|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.mines.jtk.opt.ArrayVect1fs
public class ArrayVect1fs
Implements a Vect as a collection of ArrayVect1f's of fixed size.
| Field Summary | |
|---|---|
protected ArrayVect1f[] |
_data
Array of wrapped data |
| Constructor Summary | |
|---|---|
ArrayVect1fs()
To be used with init() |
|
ArrayVect1fs(ArrayVect1f[] data)
Wrap an array of ArrayVect1f's |
|
| Method Summary | |
|---|---|
void |
add(double scaleThis,
double scaleOther,
VectConst other)
Add a scaled version of another vector to a scaled version of this vector. |
ArrayVect1fs |
clone()
|
void |
constrain()
Optionally apply a hard constraint (such as an inequality) to the current vector. |
void |
dispose()
Optionally free any resources held by this object. |
double |
dot(VectConst other)
Return the Cartesian dot product of this vector with another vector (not including any inverse covariance). |
ArrayVect1f[] |
getData()
Get the embedded data |
int |
getSize()
Return the size of the embedded array |
double |
magnitude()
This is the dot product of the vector with itself premultiplied by the inverse covariance. |
void |
multiplyInverseCovariance()
Optionally multiply a vector by the inverse covariance matrix. |
void |
postCondition()
Apply a linear filter that enhances components that should be optimized first, and suppresses components of lesser importance. |
void |
project(double scaleThis,
double scaleOther,
VectConst other)
Project another vector onto the space of this vector, then scale, and add to a scaled version of this vector. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected ArrayVect1f[] _data
| Constructor Detail |
|---|
public ArrayVect1fs(ArrayVect1f[] data)
data - Wrap this array of ArrayVect1f's.public ArrayVect1fs()
| Method Detail |
|---|
public int getSize()
public ArrayVect1f[] getData()
public ArrayVect1fs clone()
clone in interface Vectclone in interface VectConstclone in class java.lang.Objectpublic double dot(VectConst other)
VectConst
dot in interface VectConstother - The vector to be dotted.
public java.lang.String toString()
toString in class java.lang.Objectpublic void dispose()
Vect
dispose in interface Vectpublic void multiplyInverseCovariance()
Vect
multiplyInverseCovariance in interface Vectpublic void constrain()
Vect
constrain in interface Vectpublic void postCondition()
Vect
postCondition in interface Vect
public void add(double scaleThis,
double scaleOther,
VectConst other)
Vect
add in interface VectscaleThis - Multiply this vector by this scalar before adding.scaleOther - Multiply the other vector by this scalar before adding.other - The other vector to be multiplied.
public void project(double scaleThis,
double scaleOther,
VectConst other)
Vect
project in interface VectscaleThis - Multiply this vector by this scalar before adding.scaleOther - Multiply the other vector by this scalar before adding.other - The other vector to be projected, scaled, and added.public double magnitude()
VectConst
Vect vect = (Vect) this.clone();
vect.multiplyInverseCovariance();
return this.dot(vect);
But you can usually avoid the clone.
magnitude in interface VectConst
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||