|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.grogra.gpuflux.scene.experiment.Measurement
public class Measurement
Field Summary | |
---|---|
double[] |
data
Measurement vector data |
Constructor Summary | |
---|---|
Measurement()
Constructor |
|
Measurement(double[] data)
Constructor |
|
Measurement(int length)
Constructor |
Method Summary | |
---|---|
void |
add(Measurement m)
Adds a measurement vector to this measurement. |
java.lang.Object |
clone()
|
double |
integrate()
Returns the sum of the measurement vector elements. |
boolean |
isEmpty()
|
void |
mad(Measurement m,
double scale)
Scaled a measurement vector and adds it to this measurement. |
void |
mul(double scale)
Scales a measurement vector by a single factor. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public double[] data
Constructor Detail |
---|
public Measurement()
public Measurement(double[] data)
data
- the measurement vector datapublic Measurement(int length)
length
- the dimension of the measurement vectorMethod Detail |
---|
public void add(Measurement m)
m
- measurement to addpublic java.lang.Object clone()
clone
in class java.lang.Object
public double integrate()
public boolean isEmpty()
public void mad(Measurement m, double scale)
m
- measurement to scall and addscale
- scale factorpublic void mul(double scale)
scale
- the scaling factorpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |