public class IntervalArithmeticDouble
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
IntervalDouble |
MINUS_ONE
Interval representing minus one
|
IntervalDouble |
ONE
Interval representing one
|
IntervalDouble |
PI
Interval containing pi
|
IntervalDouble |
ZERO
Interval representing zero
|
Constructor and Description |
---|
IntervalArithmeticDouble() |
Modifier and Type | Method and Description |
---|---|
IntervalDouble |
abs(IntervalDouble operand)
Absolute value
|
IntervalDouble |
add(IntervalDouble operand1,
IntervalDouble operand2)
Addition
|
IntervalDouble |
binomialProbability(int n,
IntervalDouble p,
int k)
Probability mass function of the binomial distribution
based on the saddle point expansion described in the manuscript
Catherine Loader.
|
IntervalDouble |
ceil(IntervalDouble operand)
Ceil
|
int |
ceilLowerBoundToInt(IntervalDouble value)
Returns ceil of the lower bound to int
|
int |
ceilToInt(IntervalDouble value)
Returns ceil() to int, if clearly defined
|
IntervalDouble |
createInterval(double value)
Creates a new interval
|
IntervalDouble |
createInterval(double lower,
double upper)
Creates a new interval
|
IntervalDouble |
createInterval(int value)
Creates a new interval
|
IntervalDouble |
div(IntervalDouble operand1,
IntervalDouble operand2)
Division
|
IntervalDouble |
exp(IntervalDouble operand)
Exp
|
IntervalDouble |
floor(IntervalDouble operand)
Floor
|
int |
floorLowerBoundToInt(IntervalDouble value)
Returns floor of the lower bound to int
|
int |
floorToInt(IntervalDouble value)
Returns floor() to int, if clearly defined
|
boolean |
greaterThan(IntervalDouble operand1,
IntervalDouble operand2)
Greater than
|
IntervalDouble |
inv(IntervalDouble operand)
1/x
|
boolean |
lessThan(IntervalDouble operand1,
IntervalDouble operand2)
Less than
|
boolean |
lessThanOrEqual(IntervalDouble operand1,
IntervalDouble operand2)
Less than
|
boolean |
lessThanOrOverlap(IntervalDouble operand1,
IntervalDouble operand2)
Less than or overlap
|
IntervalDouble |
log(IntervalDouble operand)
Log
|
IntervalDouble |
logFactorial(int n)
Log of factorial of n.
|
IntervalDouble |
max(IntervalDouble operand1,
IntervalDouble operand2)
Max
|
IntervalDouble |
min(IntervalDouble operand1,
IntervalDouble operand2)
Min
|
IntervalDouble |
mult(IntervalDouble operand1,
IntervalDouble operand2)
Multiplication
|
IntervalDouble |
pow(IntervalDouble operand,
int exponent)
Pow
|
IntervalDouble |
sqrt(IntervalDouble operand)
Square root
|
IntervalDouble |
sub(IntervalDouble operand1,
IntervalDouble operand2)
Subtraction
|
public IntervalDouble ZERO
public IntervalDouble ONE
public IntervalDouble MINUS_ONE
public IntervalDouble PI
public IntervalDouble abs(IntervalDouble operand) throws IntervalArithmeticException
operand
- IntervalArithmeticException
public IntervalDouble add(IntervalDouble operand1, IntervalDouble operand2) throws IntervalArithmeticException
operand1
- operand2
- IntervalArithmeticException
public IntervalDouble binomialProbability(int n, IntervalDouble p, int k) throws IntervalArithmeticException
n
- p
- k
- IntervalArithmeticException
public IntervalDouble ceil(IntervalDouble operand) throws IntervalArithmeticException
operand
- IntervalArithmeticException
public int ceilLowerBoundToInt(IntervalDouble value) throws IntervalArithmeticException
value
- IntervalArithmeticException
public int ceilToInt(IntervalDouble value) throws IntervalArithmeticException
value
- IntervalArithmeticException
public IntervalDouble createInterval(double value) throws IntervalArithmeticException
value
- IntervalArithmeticException
public IntervalDouble createInterval(double lower, double upper) throws IntervalArithmeticException
lower
- upper
- IntervalArithmeticException
public IntervalDouble createInterval(int value)
value
- IntervalArithmeticException
public IntervalDouble div(IntervalDouble operand1, IntervalDouble operand2) throws IntervalArithmeticException
operand1
- operand2
- IntervalArithmeticException
public IntervalDouble exp(IntervalDouble operand) throws IntervalArithmeticException
operand
- IntervalArithmeticException
public IntervalDouble floor(IntervalDouble operand) throws IntervalArithmeticException
operand
- IntervalArithmeticException
public int floorLowerBoundToInt(IntervalDouble value) throws IntervalArithmeticException
value
- IntervalArithmeticException
public int floorToInt(IntervalDouble value) throws IntervalArithmeticException
value
- IntervalArithmeticException
public boolean greaterThan(IntervalDouble operand1, IntervalDouble operand2) throws IntervalArithmeticException
operand1
- operand2
- IntervalArithmeticException
public IntervalDouble inv(IntervalDouble operand) throws IntervalArithmeticException
operand
- IntervalArithmeticException
public boolean lessThan(IntervalDouble operand1, IntervalDouble operand2) throws IntervalArithmeticException
operand1
- operand2
- IntervalArithmeticException
public boolean lessThanOrEqual(IntervalDouble operand1, IntervalDouble operand2) throws IntervalArithmeticException
operand1
- operand2
- IntervalArithmeticException
public boolean lessThanOrOverlap(IntervalDouble operand1, IntervalDouble operand2)
operand1
- operand2
- public IntervalDouble log(IntervalDouble operand) throws IntervalArithmeticException
operand
- IntervalArithmeticException
public IntervalDouble logFactorial(int n) throws IntervalArithmeticException
IntervalArithmeticException
public IntervalDouble max(IntervalDouble operand1, IntervalDouble operand2) throws IntervalArithmeticException
operand1
- operand2
- IntervalArithmeticException
public IntervalDouble min(IntervalDouble operand1, IntervalDouble operand2) throws IntervalArithmeticException
operand1
- operand2
- IntervalArithmeticException
public IntervalDouble mult(IntervalDouble operand1, IntervalDouble operand2) throws IntervalArithmeticException
operand1
- operand2
- IntervalArithmeticException
public IntervalDouble pow(IntervalDouble operand, int exponent) throws IntervalArithmeticException
operand
- exponent
- IntervalArithmeticException
public IntervalDouble sqrt(IntervalDouble operand) throws IntervalArithmeticException
operand
- IntervalArithmeticException
public IntervalDouble sub(IntervalDouble operand1, IntervalDouble operand2) throws IntervalArithmeticException
operand1
- operand2
- IntervalArithmeticException