Package elki.data.uncertain
Interface DiscreteUncertainObject
-
- All Superinterfaces:
FeatureVector<java.lang.Double>
,SpatialComparable
,UncertainObject
- All Known Implementing Classes:
UnweightedDiscreteUncertainObject
,WeightedDiscreteUncertainObject
public interface DiscreteUncertainObject extends UncertainObject
Interface for discrete uncertain objects, that are represented by a finite (possibly weighted) number of samples.- 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 inherited from interface elki.data.FeatureVector
TYPE
-
Fields inherited from interface elki.data.uncertain.UncertainObject
DISCRETE_UNCERTAIN_OBJECT, UNCERTAIN_OBJECT_FIELD
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getNumberSamples()
Get the number of samples available (or -1 for infinite).DoubleVector
getSample(int i)
Get the i'th vector.double
getWeight(int i)
Get the weight of the i'th vector.-
Methods inherited from interface elki.data.FeatureVector
getDimensionality, getValue, toString
-
Methods inherited from interface elki.data.spatial.SpatialComparable
getDimensionality, getMax, getMin
-
Methods inherited from interface elki.data.uncertain.UncertainObject
drawSample, getCenterOfMass
-
-
-
-
Method Detail
-
getNumberSamples
int getNumberSamples()
Get the number of samples available (or -1 for infinite).- Returns:
- Number of samples, negative indicates infinite.
-
getSample
DoubleVector getSample(int i)
Get the i'th vector.- Parameters:
i
- Index- Returns:
- Vector
-
getWeight
double getWeight(int i)
Get the weight of the i'th vector.- Parameters:
i
- Index- Returns:
- Weight
-
-