|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ObservationsInterface
The observations interface is an interface for empirical observations to be used in JStats.
(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.
Nested Class Summary | |
---|---|
static interface |
ObservationsInterface.Entry
A structure entry (observation-cummulative probability pair). |
Field Summary | |
---|---|
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 |
Method Summary | |
---|---|
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. |
Field Detail |
---|
static final byte OBSERVATION
static final byte CUMPROBABILITY
Method Detail |
---|
int size()
boolean isEmpty()
boolean isGrouped()
int getIndex(ObservationsInterface.Entry entry)
entry
- the entry
boolean 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
returned
ObservationsInterface.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
returned
ObservationsInterface.Entry get(int index)
index
- index of element to return.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |