public class ValueErr extends Object implements Serializable
Constructor and Description |
---|
ValueErr()
Initialize error propagations
|
ValueErr(double value)
Initialize with value and set error=0
|
ValueErr(double value,
double error)
Initialize error propagation
|
Modifier and Type | Method and Description |
---|---|
static ValueErr |
acos(ValueErr a)
Inverse cosine of a value with error
|
static ValueErr |
asin(ValueErr a)
Inverse sine of a value with error
|
static ValueErr |
asinh(ValueErr a)
Inverse hyperbolic sine of a value with error
|
static ValueErr |
atan(ValueErr a)
inverse tangent of a value
|
static ValueErr |
atan2(ValueErr a,
ValueErr b)
Inverse tangent (atan2) of a value without correlations
|
static ValueErr |
atan2(ValueErr a,
ValueErr b,
double rho)
Inverse tangent (atan2) of a value with a correlation
|
Object |
clone() |
ValueErr |
copy()
Copy a single ValueErr
|
static ValueErr |
copy(ValueErr a)
Copy value
|
static ValueErr[] |
copy(ValueErr[] a) |
static ValueErr[][] |
copy(ValueErr[][] a)
Deep copy a 2D array of ValueErr numbers
|
static ValueErr |
cos(ValueErr a)
Cosine of a value wth error
|
static ValueErr |
cosh(ValueErr a)
Hyperbolic cosine
|
ValueErr |
divide(double a)
Division of this ValueErr number by a double
|
static ValueErr |
divide(double a,
double b)
Divide a double number by a double and return quotient as ValueErr
|
static ValueErr |
divide(double a,
ValueErr b)
Division of a double, a, by a ValueErr number, b
|
ValueErr |
divide(ValueErr a)
Division of this ValueErr number by a ValueErr number without correlation
|
ValueErr |
divide(ValueErr a,
double corrCoeff)
Division of this ValueErr number by a ValueErr number.
|
static ValueErr |
divide(ValueErr a,
ValueErr b)
Division of two ValueErr numbers a/b without correlation
|
static ValueErr |
divide(ValueErr a,
ValueErr b,
double corrCoeff)
Division of two ValueErr numbers a/b with correlation
|
void |
divideEqual(double a)
Division of this ValueErr number by a double and replace this by the
quotient
|
void |
divideEqual(ValueErr b)
Division of this ValueErr number by a ValueErr number and replace it by
the quotient without correlation
|
void |
divideEqual(ValueErr b,
double corrCoeff)
Division of this ValueErr number by a ValueErr number and replace this by
the quotient
|
static ValueErr |
exp(ValueErr a)
Get exponential function
|
double |
getErr()
Get current error
|
double |
getVal()
Get current value
|
int |
hashCode() |
static ValueErr |
hypot(ValueErr a,
ValueErr b)
Returns the length of the hypotenuse of a and b i.e.
|
static double |
hypotenuse(double aa,
double bb)
Returns the length of the hypotenuse of a and b i.e.
|
static ValueErr |
hypotenuse(ValueErr a,
ValueErr b,
double corrCoeff)
Returns the length of the hypotenuse of a and b i.e.
|
ValueErr |
inverse()
Returns the inverse (1/a) of a ValueErr number
|
static ValueErr |
inverse(ValueErr a)
Returns the reciprocal (1/a) of a ValueErr number (a)
|
static ValueErr |
log(ValueErr a)
Take natural log
|
static ValueErr |
log10(ValueErr a)
log to base 10
|
ValueErr |
minus(double a)
Subtract an error free double number from this ValueErr number.
|
static ValueErr |
minus(double a,
double b)
Subtract an error free double number b from an error free double a and
return sum as ValueErr
|
static ValueErr |
minus(double a,
ValueErr b)
Subtract a ValueErr number b from an error free double
|
ValueErr |
minus(ValueErr a)
Subtract a ValueErr number from this ValueErr number without correlation
|
ValueErr |
minus(ValueErr a,
double corrCoeff)
Subtract an ValueErr number from this ValueErr number with correlation
|
static ValueErr |
minus(ValueErr a,
ValueErr b)
Subtract ValueErr number b from ValueErr number without correlation
|
static ValueErr |
minus(ValueErr a,
ValueErr b,
double corrCoeff)
Subtract ValueErr number b from ValueErr number a with correlation
|
void |
minusEquals(double a)
Subtract a double number from this ValueErr number and replace this with
the sum
|
void |
minusEquals(ValueErr a)
Subtract a ValueErr number from this ValueErr number and replace this
with the sum with no correlation
|
void |
minusEquals(ValueErr a,
double corrCoeff)
Subtract a ValueErr number to this ValueErr number and replace this with
the sum with correlation
|
static ValueErr |
nRoot(ValueErr a,
int n)
Take nth root from the value (n is above 1)
|
static ValueErr[] |
oneDarray(int n,
ValueErr constant)
Create a one dimensional array of ValueErr objects of length n and m
|
ValueErr |
plus(double a)
Add an error free double number to this ValueErr number
|
static ValueErr |
plus(double a,
double b)
Add an error free double number to an error free double and return sum
|
static ValueErr |
plus(double a,
ValueErr b)
Add a ValueErr number to an error free double
|
ValueErr |
plus(ValueErr a)
Add a ValueErr number to this ValueErr number without correlaton
|
ValueErr |
plus(ValueErr a,
double corrCoeff)
Add 2 values with correlation
|
static ValueErr |
plus(ValueErr a,
ValueErr b)
Add two ValueErr numbers with no correlation
|
static ValueErr |
plus(ValueErr a,
ValueErr b,
double corrCoeff)
Adding 2 values with correlation
|
void |
plusEquals(double a)
Add double number to this ValueErr number and replace this with the sum
|
void |
plusEquals(ValueErr a)
Add a ValueErr number to this ValueErr number and replace this with the
sum without correlation
|
void |
plusEquals(ValueErr a,
double corrCoeff)
Add a ValueErr number to this ValueErr number and replace this with the
sum using a correlation
|
static ValueErr |
pow(double a,
ValueErr b)
returns an error free number raised to an ValueErr power
|
static ValueErr |
pow(ValueErr a,
double b)
returns an ValueErr number raised to an error free power
|
static ValueErr |
pow(ValueErr a,
ValueErr b)
ValueErr number raised to a ValueErr power with no correlation
|
static ValueErr |
pow(ValueErr a,
ValueErr b,
double corrCoeff)
returns a ValueErr number raised to a ValueErr power with correlation
|
void |
reset(double value,
double error)
Set value and errors to 0
|
void |
setErr(double error)
Set error
|
void |
setVal(double value)
Set value
|
static ValueErr |
sin(ValueErr a)
sine of an ValueErr number (trigonometric function)
|
static ValueErr |
sinh(ValueErr a)
Hyperbolic sine of a value with error
|
static ValueErr |
sqrt(ValueErr a)
Get square root value
|
ValueErr |
square()
Square
|
static ValueErr |
square(ValueErr a)
Square
|
static ValueErr |
tan(ValueErr a)
Tangent of a value with error
|
static ValueErr |
tanh(ValueErr a)
Hyperbolic tangent of value with error
|
ValueErr |
times(double a)
Multiply this ValueErr number by a double.
|
static ValueErr |
times(double a,
double b)
Multiply a double number by a double and return product as ValueErr
|
static ValueErr |
times(double a,
ValueErr b)
Multiply a double by a ValueErr number
|
ValueErr |
times(ValueErr a)
Multiply this ValueErr number by a ValueErr number without correlation
|
ValueErr |
times(ValueErr a,
double corrCoeff)
Multiply two ValueErr numbers with correlation
|
static ValueErr |
times(ValueErr a,
ValueErr b)
Multiply two ValueErr numbers without correlation
|
static ValueErr |
times(ValueErr a,
ValueErr b,
double corrCoeff)
Multiply two ValueErr numbers with correlation
|
void |
timesEquals(double a)
Multiply this ValueErr number by a double and replace it by the product
|
void |
timesEquals(ValueErr a)
Multiply this ValueErr number by an ValueErr number and replace this by
the product with no correlation
|
void |
timesEquals(ValueErr a,
double corrCoeff)
Multiply this ValueErr number by an ValueErr number and replace this by
the product with correlation
|
String |
toString()
Convert to a string
|
static ValueErr[][] |
twoDarray(int n,
int m)
Create a two dimensional array of ValueErr objects of dimensions n and m
with zeros
|
public ValueErr()
public ValueErr(double value)
value
- public ValueErr(double value, double error)
value
- valueerror
- its errorpublic void setVal(double value)
value
- public void setErr(double error)
error
- public void reset(double value, double error)
value
- error
- public double getVal()
public double getErr()
public static ValueErr[] oneDarray(int n, ValueErr constant)
public static ValueErr[][] twoDarray(int n, int m)
public ValueErr copy()
public ValueErr minus(ValueErr a, double corrCoeff)
public static ValueErr minus(ValueErr a, ValueErr b, double corrCoeff)
public ValueErr minus(ValueErr a)
public static ValueErr minus(ValueErr a, ValueErr b)
public ValueErr minus(double a)
public static ValueErr minus(double a, ValueErr b)
public static ValueErr minus(double a, double b)
public void minusEquals(ValueErr a, double corrCoeff)
public void minusEquals(ValueErr a)
public void minusEquals(double a)
public static ValueErr plus(ValueErr a, ValueErr b, double corrCoeff)
public ValueErr plus(ValueErr a)
public static ValueErr plus(ValueErr a, ValueErr b)
public ValueErr plus(double a)
public static ValueErr plus(double a, ValueErr b)
public static ValueErr plus(double a, double b)
public void plusEquals(ValueErr a, double corrCoeff)
public void plusEquals(ValueErr a)
public void plusEquals(double a)
public ValueErr times(ValueErr a, double corrCoeff)
public ValueErr times(ValueErr a)
public ValueErr times(double a)
public static ValueErr times(ValueErr a, ValueErr b, double corrCoeff)
public static ValueErr times(ValueErr a, ValueErr b)
public static ValueErr times(double a, double b)
public void timesEquals(ValueErr a, double corrCoeff)
public void timesEquals(ValueErr a)
public void timesEquals(double a)
public ValueErr divide(ValueErr a, double corrCoeff)
public static ValueErr divide(ValueErr a, ValueErr b, double corrCoeff)
public ValueErr divide(ValueErr a)
public static ValueErr divide(ValueErr a, ValueErr b)
public ValueErr divide(double a)
public static ValueErr divide(double a, ValueErr b)
public static ValueErr divide(double a, double b)
public void divideEqual(ValueErr b)
public void divideEqual(ValueErr b, double corrCoeff)
public void divideEqual(double a)
public ValueErr inverse()
public static ValueErr inverse(ValueErr a)
public static ValueErr hypotenuse(ValueErr a, ValueErr b, double corrCoeff)
public static double hypotenuse(double aa, double bb)
public static ValueErr hypot(ValueErr a, ValueErr b)
public static ValueErr exp(ValueErr a)
a
- input errorpublic static ValueErr log10(ValueErr a)
log
- to base 10public ValueErr square()
public static ValueErr pow(ValueErr a, double b)
public static ValueErr pow(double a, ValueErr b)
public static ValueErr pow(ValueErr a, ValueErr b, double corrCoeff)
public static ValueErr pow(ValueErr a, ValueErr b)
public static ValueErr atan2(ValueErr a, ValueErr b)
public static ValueErr atan2(ValueErr a, ValueErr b, double rho)
jHepWork 3.8 ©