Package elki.data.uncertain
Class UniformContinuousUncertainObject
- java.lang.Object
-
- elki.data.uncertain.AbstractUncertainObject
-
- elki.data.uncertain.UniformContinuousUncertainObject
-
- All Implemented Interfaces:
FeatureVector<java.lang.Double>
,SpatialComparable
,UncertainObject
public class UniformContinuousUncertainObject extends AbstractUncertainObject
Continuous uncertain object model using a uniform distribution on the bounding box.This is a continuous version of the U-Model in:
L. Antova, T. Jansen, C. Koch, D. Olteanu
Fast and simple relational processing of uncertain data
In IEEE 24th International Conference on Data Engineering (ICDE) 2008.- Since:
- 0.7.0
- Author:
- Alexander Koos, Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
UniformContinuousUncertainObject.Factory
Factory class for this data type.
-
Field Summary
Fields Modifier and Type Field Description static FeatureVector.Factory<UniformContinuousUncertainObject,?>
FACTORY
Vector factory.-
Fields inherited from class elki.data.uncertain.AbstractUncertainObject
bounds, DEFAULT_TRY_LIMIT
-
Fields inherited from interface elki.data.FeatureVector
TYPE
-
Fields inherited from interface elki.data.uncertain.UncertainObject
DISCRETE_UNCERTAIN_OBJECT, UNCERTAIN_OBJECT_FIELD
-
-
Constructor Summary
Constructors Constructor Description UniformContinuousUncertainObject(SpatialComparable bounds)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DoubleVector
drawSample(java.util.Random rand)
Draw a random sampled instance.DoubleVector
getCenterOfMass()
Get the center of mass of the uncertain object.-
Methods inherited from class elki.data.uncertain.AbstractUncertainObject
computeBounds, getDimensionality, getMax, getMin, getValue
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface elki.data.FeatureVector
toString
-
-
-
-
Field Detail
-
FACTORY
public static final FeatureVector.Factory<UniformContinuousUncertainObject,?> FACTORY
Vector factory.
-
-
Constructor Detail
-
UniformContinuousUncertainObject
public UniformContinuousUncertainObject(SpatialComparable bounds)
Constructor.- Parameters:
bounds
- Bounding box.
-
-
Method Detail
-
getCenterOfMass
public DoubleVector getCenterOfMass()
Description copied from interface:UncertainObject
Get the center of mass of the uncertain object.- Specified by:
getCenterOfMass
in interfaceUncertainObject
- Specified by:
getCenterOfMass
in classAbstractUncertainObject
- Returns:
- Center of mass.
-
drawSample
public DoubleVector drawSample(java.util.Random rand)
Description copied from interface:UncertainObject
Draw a random sampled instance.- Specified by:
drawSample
in interfaceUncertainObject
- Specified by:
drawSample
in classAbstractUncertainObject
- Parameters:
rand
- Random generator- Returns:
- Sampled object.
-
-