public final class NumericalStorage extends Object
Binary Storage.
Modifier and Type | Method and Description |
---|---|
static NumericalStorage |
create(int size)
Factory method to construct a numerical storage.
|
NumericalStorage |
extend(int index,
double value)
Extends value.
|
NumericalStorage |
extendInf(int index,
double value)
Extend by inf value.
|
NumericalStorage |
extendSup(int index,
double value)
Extend by sup value.
|
double |
getInf(int index)
Get the inf value at specified index.
|
double |
getSup(int index)
Get the sup value at specified index.
|
NumericalStorage |
intersection(NumericalStorage storage)
Intersection.
|
boolean |
isEmpty(int index)
Is the set at specified index empty?
|
boolean |
isPoint(int index)
Is the set at specified index a point?
|
NumericalStorage |
reduceInf(int index,
double value)
Reduce by inf value.
|
NumericalStorage |
reduceSup(int index,
double value)
Reduce by sup value.
|
NumericalStorage |
setEmpty(int index)
Set the set at specified index empty.
|
NumericalStorage |
setInf(int index,
double value)
Set the inf mark to specified value.
|
NumericalStorage |
setPoint(int index,
double value)
Set the set at specified index a point.
|
NumericalStorage |
setSup(int index,
double value)
Set the sup mark to specified value.
|
int |
size()
Get the size.
|
String |
toString()
Returns a String representation of this object.
|
NumericalStorage |
union(NumericalStorage storage)
Union.
|
public static NumericalStorage create(int size)
Factory method to construct a numerical storage.
size
- number of valuespublic NumericalStorage setEmpty(int index)
Set the set at specified index empty.
index
- index of the numerical setpublic boolean isEmpty(int index)
Is the set at specified index empty?
index
- index of the numerical setpublic NumericalStorage setPoint(int index, double value)
Set the set at specified index a point.
index
- index of the numerical setvalue
- the new valuepublic boolean isPoint(int index)
Is the set at specified index a point?
index
- index of the numerical setpublic NumericalStorage setInf(int index, double value)
Set the inf mark to specified value.
index
- the specified indexvalue
- the new valuepublic NumericalStorage setSup(int index, double value)
Set the sup mark to specified value.
index
- the specified indexvalue
- the new valuepublic double getInf(int index)
Get the inf value at specified index.
index
- the specified indexpublic double getSup(int index)
Get the sup value at specified index.
index
- the specified indexpublic NumericalStorage reduceInf(int index, double value)
Reduce by inf value.
index
- value to be reducedvalue
- value used to reducepublic NumericalStorage reduceSup(int index, double value)
Reduce by sup value.
index
- value to be reducedvalue
- value used to reducepublic NumericalStorage extendInf(int index, double value)
Extend by inf value.
index
- value to be extendedvalue
- value used to extendpublic NumericalStorage extendSup(int index, double value)
Extend by sup value.
index
- value to be extendedvalue
- value used to extendpublic NumericalStorage extend(int index, double value)
Extends value.
index
- value to be extendedvalue
- value used to extendpublic NumericalStorage intersection(NumericalStorage storage)
Intersection.
storage
- NumericalStorageIs it the meet operation?
public NumericalStorage union(NumericalStorage storage)
Union.
An approximation is made for union when the two intervals are disjoint. The result is the minimum interval containing both intervals.
storage
- NumericalStoragepublic int size()
Get the size.
Copyright © 2010–2016 The Galactic Organization. All rights reserved.