
public abstract class AbstractUncertainObject extends Object implements UncertainObject
UncertainObjects, providing shared
functionality such as bounding box access and random generation.FeatureVector.Factory<V extends FeatureVector<? extends D>,D>| Modifier and Type | Field and Description |
|---|---|
protected SpatialComparable |
bounds
Bounding box of the object.
|
static int |
DEFAULT_TRY_LIMIT
Default retry limit for sampling, to guard against bad parameters.
|
| Constructor and Description |
|---|
AbstractUncertainObject() |
| Modifier and Type | Method and Description |
|---|---|
protected static HyperBoundingBox |
computeBounds(NumberVector[] samples)
Compute the bounding box for some samples.
|
abstract DoubleVector |
drawSample(Random rand)
Draw a random sampled instance.
|
abstract DoubleVector |
getCenterOfMass()
Get the center of mass of the uncertain object.
|
int |
getDimensionality()
Returns the dimensionality of the object.
|
double |
getMax(int dimension)
Returns the maximum coordinate at the specified dimension.
|
double |
getMin(int dimension)
Returns the minimum coordinate at the specified dimension.
|
Double |
getValue(int dimension)
Returns the value in the specified dimension.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoStringpublic static final int DEFAULT_TRY_LIMIT
protected SpatialComparable bounds
protected static HyperBoundingBox computeBounds(NumberVector[] samples)
samples - Samplespublic abstract DoubleVector drawSample(Random rand)
UncertainObjectdrawSample in interface UncertainObjectrand - Random generatorpublic int getDimensionality()
SpatialComparablegetDimensionality in interface FeatureVector<Double>getDimensionality in interface SpatialComparablepublic double getMin(int dimension)
SpatialComparablegetMin in interface SpatialComparabledimension - the dimension for which the coordinate should be returned,
where 0 ≤ dimension < getDimensionality()public double getMax(int dimension)
SpatialComparablegetMax in interface SpatialComparabledimension - the dimension for which the coordinate should be returned,
where 0 ≤ dimension < getDimensionality()public Double getValue(int dimension)
FeatureVectorgetValue in interface FeatureVector<Double>dimension - the desired dimension, where 0 ≤ dimension ≤
this.getDimensionality()-1public abstract DoubleVector getCenterOfMass()
UncertainObjectgetCenterOfMass in interface UncertainObjectCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.