public class VariableDomain
extends java.lang.Object
State
variable.Modifier and Type | Field and Description |
---|---|
double |
lower
The lower value of the domain
|
double |
upper
The upper value of the domain
|
Constructor and Description |
---|
VariableDomain() |
VariableDomain(double lower,
double upper)
Initializes.
|
Modifier and Type | Method and Description |
---|---|
double |
norm(double d)
Given a value in this variable domain, returns its normalized value.
|
double |
span()
Returns the spanning size of the domain; that is, upper - lower
|
public double lower
public double upper
public VariableDomain()
public VariableDomain(double lower, double upper)
lower
- The lower value of the domainupper
- The upper value of the domainpublic double span()
public double norm(double d)
d
- the input value