Class UniformUncertainifier
- java.lang.Object
-
- elki.data.uncertain.uncertainifier.UniformUncertainifier
-
- All Implemented Interfaces:
Uncertainifier<UniformContinuousUncertainObject>
public class UniformUncertainifier extends java.lang.Object implements Uncertainifier<UniformContinuousUncertainObject>
Factory class.- Since:
- 0.7.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UniformUncertainifier.Par
Parameterizer class.
-
Field Summary
Fields Modifier and Type Field Description (package private) double
maxDev
Minimum and maximum allowed deviation.(package private) double
minDev
Minimum and maximum allowed deviation.(package private) boolean
symmetric
Generate symmetric distributions only.-
Fields inherited from interface elki.data.uncertain.uncertainifier.Uncertainifier
SYMMETRIC_ID
-
-
Constructor Summary
Constructors Constructor Description UniformUncertainifier(double minDev, double maxDev, boolean symmetric)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FeatureVector.Factory<UniformContinuousUncertainObject,?>
getFactory()
Get the vector factory used for type information and serialization (if supported).<A> UniformContinuousUncertainObject
newFeatureVector(java.util.Random rand, A array, NumberArrayAdapter<?,A> adapter)
Generate a new uncertain object.
-
-
-
Method Detail
-
newFeatureVector
public <A> UniformContinuousUncertainObject 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);
- Specified by:
newFeatureVector
in interfaceUncertainifier<UniformContinuousUncertainObject>
- Type Parameters:
A
- Array type- Parameters:
rand
- Random generatorarray
- Arrayadapter
- Array type adapter- Returns:
- Uncertain object
-
getFactory
public FeatureVector.Factory<UniformContinuousUncertainObject,?> getFactory()
Description copied from interface:Uncertainifier
Get the vector factory used for type information and serialization (if supported).- Specified by:
getFactory
in interfaceUncertainifier<UniformContinuousUncertainObject>
- Returns:
- Vector factory.
-
-