Interface Uncertainifier<UO extends UncertainObject>
-
- Type Parameters:
UO- Object type
- All Known Implementing Classes:
AbstractDiscreteUncertainifier,SimpleGaussianUncertainifier,UniformUncertainifier,UnweightedDiscreteUncertainifier,WeightedDiscreteUncertainifier
public interface Uncertainifier<UO extends UncertainObject>Class to derive uncertain object from exact vectors.- Since:
- 0.7.0
- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description static OptionIDSYMMETRIC_IDShared parameter: to force centering the uncertain region on the exact vector.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FeatureVector.Factory<UO,?>getFactory()Get the vector factory used for type information and serialization (if supported).<A> UOnewFeatureVector(java.util.Random rand, A array, NumberArrayAdapter<?,A> adapter)Generate a new uncertain object.
-
-
-
Field Detail
-
SYMMETRIC_ID
static final OptionID SYMMETRIC_ID
Shared parameter: to force centering the uncertain region on the exact vector.
-
-
Method Detail
-
newFeatureVector
<A> UO newFeatureVector(java.util.Random rand, A array, NumberArrayAdapter<?,A> adapter)
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
FeatureVector.Factory<UO,?> getFactory()
Get the vector factory used for type information and serialization (if supported).- Returns:
- Vector factory.
-
-