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