Package elki.data.uncertain
Interface UncertainObject
-
- All Superinterfaces:
FeatureVector<java.lang.Double>,SpatialComparable
- All Known Subinterfaces:
DiscreteUncertainObject
- All Known Implementing Classes:
AbstractUncertainObject,SimpleGaussianContinuousUncertainObject,UniformContinuousUncertainObject,UnweightedDiscreteUncertainObject,WeightedDiscreteUncertainObject
public interface UncertainObject extends SpatialComparable, FeatureVector<java.lang.Double>
Interface for uncertain objects. Uncertain objects must provide a bounding box in this model, and have an option to randomly sample from the data. TODO: Eventually allow float precision, too.- Since:
- 0.7.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface elki.data.FeatureVector
FeatureVector.Factory<V extends FeatureVector<? extends D>,D>
-
-
Field Summary
Fields Modifier and Type Field Description static VectorFieldTypeInformation<DiscreteUncertainObject>DISCRETE_UNCERTAIN_OBJECTUncertain objects.static VectorFieldTypeInformation<UncertainObject>UNCERTAIN_OBJECT_FIELDUncertain objects.-
Fields inherited from interface elki.data.FeatureVector
TYPE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DoubleVectordrawSample(java.util.Random rand)Draw a random sampled instance.DoubleVectorgetCenterOfMass()Get the center of mass of the uncertain object.-
Methods inherited from interface elki.data.FeatureVector
getDimensionality, getValue, toString
-
Methods inherited from interface elki.data.spatial.SpatialComparable
getDimensionality, getMax, getMin
-
-
-
-
Field Detail
-
UNCERTAIN_OBJECT_FIELD
static final VectorFieldTypeInformation<UncertainObject> UNCERTAIN_OBJECT_FIELD
Uncertain objects.
-
DISCRETE_UNCERTAIN_OBJECT
static final VectorFieldTypeInformation<DiscreteUncertainObject> DISCRETE_UNCERTAIN_OBJECT
Uncertain objects.
-
-
Method Detail
-
drawSample
DoubleVector drawSample(java.util.Random rand)
Draw a random sampled instance.- Parameters:
rand- Random generator- Returns:
- Sampled object.
-
getCenterOfMass
DoubleVector getCenterOfMass()
Get the center of mass of the uncertain object.- Returns:
- Center of mass.
-
-