|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.asu.cri.MirkE.dataStructures.UnitValue
edu.asu.cri.MirkE.dataStructures.MeasuredValue
A UnitValue along with a first statistical moment (standard deviation)
TODO - add support to store and propagate arbitrary moments
| Constructor Summary | |
MeasuredValue()
default constructor |
|
MeasuredValue(double value,
double standardDeviation,
Unit units)
constructor |
|
MeasuredValue(java.lang.Double value,
java.lang.Double standardDeviation,
Unit units)
constructor |
|
MeasuredValue(UnitValue unitValue)
constructor |
|
| Method Summary | |
MeasuredValue |
add(MeasuredValue measuredValue)
add a MeasuredValue to this and return the sum (if it exists) |
MeasuredValue |
add(UnitValue unitValue)
add a MeasuredValue to this and return the sum (if it exists) |
MeasuredValue |
divide(MeasuredValue measuredValue)
divide this by a MeasuredValue and return the result |
boolean |
equals(java.lang.Object object)
|
double |
getStandardDeviation()
|
MeasuredValue |
multiply(double scalarMultiplier)
multiply a double to this and return the product |
MeasuredValue |
multiply(MeasuredValue measuredValue)
multiply a MeasuredValue to this and return the product |
MeasuredValue |
raiseToPower(double power)
return the nth power of this MeasuredValue |
void |
setStandardDeviation(double standardDeviation)
|
MeasuredValue |
subtract(MeasuredValue measuredValue)
subtract a MeasuredValue from this and return the difference (if it exists) |
MeasuredValue |
subtract(UnitValue unitValue)
add a MeasuredValue to this and return the sum (if it exists) |
java.lang.String |
toString()
|
| Methods inherited from class edu.asu.cri.MirkE.dataStructures.UnitValue |
getId, getUnits, getValue, isEditable, setEditable, setId, setUnits, setValue |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public MeasuredValue()
public MeasuredValue(double value,
double standardDeviation,
Unit units)
value - standardDeviation - units -
public MeasuredValue(java.lang.Double value,
java.lang.Double standardDeviation,
Unit units)
value - standardDeviation - units - public MeasuredValue(UnitValue unitValue)
unitValue - | Method Detail |
public MeasuredValue add(MeasuredValue measuredValue)
MeasuredValue to this and return the sum (if it exists)
measuredValue -
measuredValuepublic MeasuredValue add(UnitValue unitValue)
MeasuredValue to this and return the sum (if it exists)
unitValue -
unitValuepublic MeasuredValue subtract(UnitValue unitValue)
MeasuredValue to this and return the sum (if it exists)
unitValue -
unitValuepublic MeasuredValue subtract(MeasuredValue measuredValue)
MeasuredValue from this and return the difference (if it exists)
measuredValue -
public MeasuredValue multiply(double scalarMultiplier)
double to this and return the product
scalarMultiplier -
public MeasuredValue multiply(MeasuredValue measuredValue)
MeasuredValue to this and return the product
measuredValue -
public MeasuredValue divide(MeasuredValue measuredValue)
MeasuredValue and return the result
measuredValue -
this / measuredValuepublic MeasuredValue raiseToPower(double power)
MeasuredValue
power -
public boolean equals(java.lang.Object object)
equals in class UnitValueObject.equals(java.lang.Object)public void setStandardDeviation(double standardDeviation)
standardDeviation - public double getStandardDeviation()
public java.lang.String toString()
toString in class UnitValue
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||