public class UniformUncertainifier extends Object implements Uncertainifier<UniformContinuousUncertainObject>
Modifier and Type | Class and Description |
---|---|
static class |
UniformUncertainifier.Parameterizer
Parameterizer class.
|
Modifier and Type | Field and 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.
|
SYMMETRIC_ID
Constructor and Description |
---|
UniformUncertainifier(double minDev,
double maxDev,
boolean symmetric)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
FeatureVector.Factory<UniformContinuousUncertainObject,?> |
getFactory()
Get the vector factory used for type information and serialization (if
supported).
|
<A> UniformContinuousUncertainObject |
newFeatureVector(Random rand,
A array,
NumberArrayAdapter<?,A> adapter)
Generate a new uncertain object.
|
double minDev
double maxDev
boolean symmetric
public UniformUncertainifier(double minDev, double maxDev, boolean symmetric)
minDev
- Minimum deviationmaxDev
- Maximum deviationsymmetric
- Generate symmetric distributions onlypublic <A> UniformContinuousUncertainObject newFeatureVector(Random rand, A array, NumberArrayAdapter<?,A> adapter)
Uncertainifier
double[]
arrays:
UO obj = newFeatureVector(array, ArrayLikeUtil.DOUBLEARRAYADAPTER);
newFeatureVector
in interface Uncertainifier<UniformContinuousUncertainObject>
A
- Array typerand
- Random generatorarray
- Arrayadapter
- Array type adapterpublic FeatureVector.Factory<UniformContinuousUncertainObject,?> getFactory()
Uncertainifier
getFactory
in interface Uncertainifier<UniformContinuousUncertainObject>
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.