Package jisa.maths
Class ErrorValue
- java.lang.Object
-
- java.lang.Number
-
- jisa.maths.ErrorValue
-
- All Implemented Interfaces:
java.io.Serializable
public class ErrorValue extends java.lang.Number
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ErrorValue(double value, double error)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorValue
add(double other)
ErrorValue
add(ErrorValue other)
ErrorValue
div(double other)
ErrorValue
div(ErrorValue other)
ErrorValue
divide(double other)
ErrorValue
divide(ErrorValue other)
double
doubleValue()
float
floatValue()
double
getError()
double
getValue()
int
intValue()
long
longValue()
ErrorValue
minus(double other)
ErrorValue
minus(ErrorValue other)
ErrorValue
multiply(double other)
ErrorValue
multiply(ErrorValue other)
ErrorValue
plus(double other)
ErrorValue
plus(ErrorValue other)
ErrorValue
pow(double other)
ErrorValue
pow(ErrorValue power)
ErrorValue
subtract(double other)
ErrorValue
subtract(ErrorValue other)
ErrorValue
times(double other)
ErrorValue
times(ErrorValue other)
-
-
-
Method Detail
-
getValue
public double getValue()
-
getError
public double getError()
-
intValue
public int intValue()
- Specified by:
intValue
in classjava.lang.Number
-
longValue
public long longValue()
- Specified by:
longValue
in classjava.lang.Number
-
floatValue
public float floatValue()
- Specified by:
floatValue
in classjava.lang.Number
-
doubleValue
public double doubleValue()
- Specified by:
doubleValue
in classjava.lang.Number
-
add
public ErrorValue add(ErrorValue other)
-
add
public ErrorValue add(double other)
-
plus
public ErrorValue plus(ErrorValue other)
-
plus
public ErrorValue plus(double other)
-
subtract
public ErrorValue subtract(ErrorValue other)
-
subtract
public ErrorValue subtract(double other)
-
minus
public ErrorValue minus(ErrorValue other)
-
minus
public ErrorValue minus(double other)
-
multiply
public ErrorValue multiply(ErrorValue other)
-
multiply
public ErrorValue multiply(double other)
-
times
public ErrorValue times(ErrorValue other)
-
times
public ErrorValue times(double other)
-
divide
public ErrorValue divide(ErrorValue other)
-
divide
public ErrorValue divide(double other)
-
div
public ErrorValue div(ErrorValue other)
-
div
public ErrorValue div(double other)
-
pow
public ErrorValue pow(ErrorValue power)
-
pow
public ErrorValue pow(double other)
-
-