Class WeightedDiscreteUncertainifier
- java.lang.Object
-
- elki.data.uncertain.uncertainifier.AbstractDiscreteUncertainifier<WeightedDiscreteUncertainObject>
-
- elki.data.uncertain.uncertainifier.WeightedDiscreteUncertainifier
-
- All Implemented Interfaces:
Uncertainifier<WeightedDiscreteUncertainObject>
public class WeightedDiscreteUncertainifier extends AbstractDiscreteUncertainifier<WeightedDiscreteUncertainObject>
Class to generate weighted discrete uncertain objects.This is a second-order generator: it requires the use of another generator to sample from (e.g.,
UniformUncertainifier
orSimpleGaussianUncertainifier
).- Since:
- 0.7.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WeightedDiscreteUncertainifier.Par
Parameterization class.
-
Field Summary
-
Fields inherited from class elki.data.uncertain.uncertainifier.AbstractDiscreteUncertainifier
inner, maxQuant, minQuant
-
Fields inherited from interface elki.data.uncertain.uncertainifier.Uncertainifier
SYMMETRIC_ID
-
-
Constructor Summary
Constructors Constructor Description WeightedDiscreteUncertainifier(Uncertainifier<?> inner, int minQuant, int maxQuant)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FeatureVector.Factory<WeightedDiscreteUncertainObject,?>
getFactory()
Get the vector factory used for type information and serialization (if supported).<A> WeightedDiscreteUncertainObject
newFeatureVector(java.util.Random rand, A array, NumberArrayAdapter<?,A> adapter)
Generate a new uncertain object.
-
-
-
Constructor Detail
-
WeightedDiscreteUncertainifier
public WeightedDiscreteUncertainifier(Uncertainifier<?> inner, int minQuant, int maxQuant)
Constructor.- Parameters:
inner
- Inner uncertainifierminQuant
- Minimum number of samplesmaxQuant
- Maximum number of samples
-
-
Method Detail
-
newFeatureVector
public <A> WeightedDiscreteUncertainObject newFeatureVector(java.util.Random rand, A array, NumberArrayAdapter<?,A> adapter)
Description copied from interface:Uncertainifier
Generate a new uncertain object. This interface is specialized to numerical arrays. The generics allow the use with primitivedouble[]
arrays:UO obj = newFeatureVector(array, ArrayLikeUtil.DOUBLEARRAYADAPTER);
- Type Parameters:
A
- Array type- Parameters:
rand
- Random generatorarray
- Arrayadapter
- Array type adapter- Returns:
- Uncertain object
-
getFactory
public FeatureVector.Factory<WeightedDiscreteUncertainObject,?> getFactory()
Description copied from interface:Uncertainifier
Get the vector factory used for type information and serialization (if supported).- Returns:
- Vector factory.
-
-