public class SimpleGaussianUncertainifier extends java.lang.Object implements Uncertainifier<SimpleGaussianContinuousUncertainObject>
Modifier and Type | Class and Description |
---|---|
static class |
SimpleGaussianUncertainifier.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 |
---|
SimpleGaussianUncertainifier(double minDev,
double maxDev,
boolean symmetric)
Constructor.
|
Modifier and Type | Method and 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.
|
double minDev
double maxDev
boolean symmetric
public SimpleGaussianUncertainifier(double minDev, double maxDev, boolean symmetric)
minDev
- Minimum deviationmaxDev
- Maximum deviationsymmetric
- Generate symmetric distributions onlypublic <A> SimpleGaussianContinuousUncertainObject newFeatureVector(java.util.Random rand, A array, NumberArrayAdapter<?,A> adapter)
Uncertainifier
double[]
arrays:
UO obj = newFeatureVector(array, ArrayLikeUtil.DOUBLEARRAYADAPTER);
newFeatureVector
in interface Uncertainifier<SimpleGaussianContinuousUncertainObject>
A
- Array typerand
- Random generatorarray
- Arrayadapter
- Array type adapterpublic FeatureVector.Factory<SimpleGaussianContinuousUncertainObject,?> getFactory()
Uncertainifier
getFactory
in interface Uncertainifier<SimpleGaussianContinuousUncertainObject>
Copyright © 2019 ELKI Development Team. License information.