Package elki.data.uncertain
Class SimpleGaussianContinuousUncertainObject
- java.lang.Object
-
- elki.data.uncertain.AbstractUncertainObject
-
- elki.data.uncertain.SimpleGaussianContinuousUncertainObject
-
- All Implemented Interfaces:
FeatureVector<java.lang.Double>
,SpatialComparable
,UncertainObject
public class SimpleGaussianContinuousUncertainObject extends AbstractUncertainObject
Gaussian model for uncertain objects, sampled from a 3-sigma bounding box. This model does not support covariance, but all distributions are axis-aligned. TODO: currently, only a 3 sigma bounding box is supported.- Since:
- 0.7.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
SimpleGaussianContinuousUncertainObject.Factory
Factory class for this data type.
-
Field Summary
Fields Modifier and Type Field Description private static double
DIV
Scaling factor from bounding box width to standard deviations.static FeatureVector.Factory<SimpleGaussianContinuousUncertainObject,?>
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 SimpleGaussianContinuousUncertainObject(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<SimpleGaussianContinuousUncertainObject,?> FACTORY
Vector factory.
-
DIV
private static final double DIV
Scaling factor from bounding box width to standard deviations. Bounding box is 6 standard deviations in width (three on each side)!- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SimpleGaussianContinuousUncertainObject
public SimpleGaussianContinuousUncertainObject(SpatialComparable bounds)
Constructor.- Parameters:
bounds
- Bounding box (3 sigma)
-
-
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.
-
-