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 |
---|---|
ValueErr |
acos(ValueErr a)
Inverse cosine of a value with error
|
ValueErr |
asin(ValueErr a)
Inverse sine of a value with error
|
double |
asinh(double a)
Inverse hyperbolic sine of a double number
|
ValueErr |
asinh(ValueErr a)
Inverse hyperbolic sine of a value with error
|
ValueErr |
atan(ValueErr a)
inverse tangent of a value
|
ValueErr |
atan2(ValueErr a,
ValueErr b)
Inverse tangent (atan2) of a value without correlations
|
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
|
ValueErr[] |
copy(ValueErr[] a) |
ValueErr[][] |
copy(ValueErr[][] a)
Deep copy a 2D array of ValueErr numbers
|
ValueErr |
cos(ValueErr a)
Cosine of a value wth error
|
ValueErr |
cosh(ValueErr a)
Hyperbolic cosine
|
ValueErr |
divide(double a)
Division of this ValueErr number by a double
|
ValueErr |
divide(double a,
double b)
Divide a double number by a double and return quotient as ValueErr
|
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.
|
ValueErr |
divide(ValueErr a,
ValueErr b)
Division of two ValueErr numbers a/b without correlation
|
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
|
ValueErr |
exp(ValueErr a)
Get exponential function
|
double |
getErr()
Get current error
|
double |
getVal()
Get current value
|
int |
hashCode() |
ValueErr |
hypot(ValueErr a,
ValueErr b)
Returns the length of the hypotenuse of a and b i.e.
|
double |
hypotenuse(double aa,
double bb)
Returns the length of the hypotenuse of a and b i.e.
|
ValueErr |
hypotenuse(ValueErr a,
ValueErr b,
double corrCoeff)
Returns the length of the hypotenuse of a and b i.e.
|
double |
hypWithCovariance(double a,
double b,
double r)
Private methods.
|
ValueErr |
inverse()
Returns the inverse (1/a) of a ValueErr number
|
ValueErr |
inverse(ValueErr a)
Returns the reciprocal (1/a) of a ValueErr number (a)
|
ValueErr |
log(ValueErr a)
Take natural log
|
double |
log10(double a) |
ValueErr |
log10(ValueErr a)
log to base 10
|
ValueErr |
minus(double a)
Subtract an error free double number from this ValueErr number.
|
ValueErr |
minus(double a,
double b)
Subtract an error free double number b from an error free double a and
return sum as ValueErr
|
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
|
ValueErr |
minus(ValueErr a,
ValueErr b)
Subtract ValueErr number b from ValueErr number without correlation
|
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
|
ValueErr |
nRoot(ValueErr a,
int n)
Take nth root from the value (n is above 1)
|
ValueErr[] |
oneDarray(int n)
Create a one dimensional array of ValueErr objects of length n.
|
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
|
ValueErr |
plus(double a,
double b)
Add an error free double number to an error free double and return sum
|
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
|
ValueErr |
plus(ValueErr a,
ValueErr b)
Add two ValueErr numbers with no correlation
|
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
|
ValueErr |
pow(double a,
ValueErr b)
returns an error free number raised to an ValueErr power
|
ValueErr |
pow(ValueErr a,
double b)
returns an ValueErr number raised to an error free power
|
ValueErr |
pow(ValueErr a,
ValueErr b)
ValueErr number raised to a ValueErr power with no correlation
|
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
|
double |
sec(double a)
Secant
|
double |
sech(double a)
Hyperbolic secant
|
void |
setErr(double error)
Set error
|
void |
setVal(double value)
Set value
|
double |
sign(double x)
Sign function
|
ValueErr |
sin(ValueErr a)
sine of an ValueErr number (trigonometric function)
|
ValueErr |
sinh(ValueErr a)
Hyperbolic sine of a value with error
|
ValueErr |
sqrt(ValueErr a)
Get square root value
|
ValueErr |
square()
Square
|
double |
square(double a) |
ValueErr |
square(ValueErr a)
Square
|
ValueErr |
tan(ValueErr a)
Tangent of a value with error
|
ValueErr |
tanh(ValueErr a)
Hyperbolic tangent of value with error
|
ValueErr |
times(double a)
Multiply this ValueErr number by a double.
|
ValueErr |
times(double a,
double b)
Multiply a double number by a double and return product as ValueErr
|
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
|
ValueErr |
times(ValueErr a,
ValueErr b)
Multiply two ValueErr numbers without correlation
|
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
|
ValueErr[][] |
twoDarray(int n,
int m)
Create a two dimensional array of ValueErr objects of dimensions n and m
with zeros
|
ValueErr |
zero()
Set value to zero
|
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 ValueErr[] oneDarray(int n)
public ValueErr[] oneDarray(int n, ValueErr constant)
public ValueErr[][] twoDarray(int n, int m)
public ValueErr copy()
public ValueErr minus(ValueErr a, double corrCoeff)
public ValueErr minus(ValueErr a, ValueErr b, double corrCoeff)
public ValueErr minus(ValueErr a)
public ValueErr minus(ValueErr a, ValueErr b)
public ValueErr minus(double a)
public ValueErr minus(double a, ValueErr b)
public ValueErr minus(double a, double b)
public void minusEquals(ValueErr a, double corrCoeff)
public void minusEquals(ValueErr a)
public void minusEquals(double a)
public ValueErr plus(ValueErr a, ValueErr b, double corrCoeff)
public ValueErr plus(ValueErr a)
public ValueErr plus(double a)
public 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 ValueErr times(ValueErr a, ValueErr b, double corrCoeff)
public ValueErr times(ValueErr a, ValueErr b)
public 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 ValueErr divide(ValueErr a, ValueErr b, double corrCoeff)
public ValueErr divide(ValueErr a)
public ValueErr divide(ValueErr a, ValueErr b)
public ValueErr divide(double a)
public ValueErr divide(double a, ValueErr b)
public 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 ValueErr hypotenuse(ValueErr a, ValueErr b, double corrCoeff)
public double hypotenuse(double aa, double bb)
public ValueErr hypot(ValueErr a, ValueErr b)
public double log10(double a)
public ValueErr square()
public ValueErr pow(ValueErr a, double b)
public ValueErr pow(double a, ValueErr b)
public ValueErr pow(ValueErr a, ValueErr b, double corrCoeff)
public ValueErr pow(ValueErr a, ValueErr b)
public double sec(double a)
a
- public double square(double a)
public double sech(double a)
public ValueErr atan2(ValueErr a, ValueErr b)
public ValueErr atan2(ValueErr a, ValueErr b, double rho)
public double asinh(double a)
public ValueErr zero()
public double sign(double x)
public double hypWithCovariance(double a, double b, double r)
Jas4pp 1.5 © Java Analysis Studio for Particle Physics