public interface ObservationsInterface
(c) copyright 2002-2004 Delft
University of Technology , the Netherlands.
See for project information
www.simulation.tudelft.nl
License of use: Lesser
General Public License (LGPL) , no warranty.
Modifier and Type | Interface and Description |
---|---|
static interface |
ObservationsInterface.Entry
A structure entry (observation-cummulative probability pair).
|
Modifier and Type | Field and Description |
---|---|
static byte |
CUMPROBABILITY
the CUMPROBABILITY attribute used to define whether operations should be
applied on the OBSERVATION or on the CUMPROBABILITY
|
static byte |
OBSERVATION
the OBSERVATION attribute used to define whether operations should be
applied on the OBSERVATION or on the CUMPROBABILITY
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Number object,
byte type)
returns whether the structure contains this specific object (either an
observation or a probability).
|
ObservationsInterface.Entry |
get(int index)
Returns the element at the specified position in this structure.
|
ObservationsInterface.Entry |
getCeilingEntry(Number object,
byte type,
boolean inclusive)
Gets the entry corresponding to the specified object if inclusive; if not
inclusive or such entry does not exists, returns the entry for the least
object greater than the specified object; if no such entry exists (i.e.,
the greatest object in the Tree is less than the specified object),
returns null.
|
List |
getCumProbabilities()
Returns the observations
|
ObservationsInterface.Entry |
getEntry(Number object,
byte type)
Returns the entry to which the structure maps the specific object.
|
int |
getIndex(ObservationsInterface.Entry entry)
Returns the index of the entry of this structure.
|
List |
getObservations()
Returns the observations
|
ObservationsInterface.Entry |
getPrecedingEntry(Number object,
byte type,
boolean inclusive)
Gets the entry corresponding to the specified object if inclusive; if not
inclusive or such entry does not exists, returns the entry for the
greatest object less than the specified object; if no such entry exists
(i.e., the least object in the Tree is greater than the specified
object), returns null.
|
boolean |
isEmpty()
Returns true if this structure contains no object-value
mappings.
|
boolean |
isGrouped()
Returns true if this structure contains grouped empirical
data.
|
int |
size()
Returns the number of observation-probability mappings in this structure.
|
static final byte OBSERVATION
static final byte CUMPROBABILITY
int size()
boolean isEmpty()
boolean isGrouped()
int getIndex(ObservationsInterface.Entry entry)
entry
- the entryboolean contains(Number object, byte type)
object
- the object to look fortype
- the type (either the ObservationsInterface.OBSERVATION or the
ObservationsInterface.CUMPROBABILITY)List getObservations()
List getCumProbabilities()
ObservationsInterface.Entry getEntry(Number object, byte type)
object
- entry whose associated entry is to be returned.type
- the type (either the ObservationsInterface.OBSERVATION or the
ObservationsInterface.CUMPROBABILITY)ObservationsInterface.Entry getPrecedingEntry(Number object, byte type, boolean inclusive)
object
- object whose next object associated value is to be
returned.type
- the type (either the ObservationsInterface.OBSERVATION or the
ObservationsInterface.CUMPROBABILITY)inclusive
- if inclusive and structure contains object object is
returnedObservationsInterface.Entry getCeilingEntry(Number object, byte type, boolean inclusive)
object
- object whose associated value is to be returned.type
- the type (either the ObservationsInterface.OBSERVATION or the
ObservationsInterface.CUMPROBABILITY)inclusive
- if inclusive and structure contains object object is
returnedObservationsInterface.Entry get(int index)
index
- index of element to return.Copyright © 2002-2012 Delft University of Technology, the Netherlands. All Rights Reserved.