private static class UnweightedDiscreteUncertainObject.Factory extends java.lang.Object implements FeatureVector.Factory<UnweightedDiscreteUncertainObject,java.lang.Number>
Uncertainifier
to
derive uncertain objects from certain vectors.
TODO: provide serialization functionality.
Modifier | Constructor and Description |
---|---|
private |
Factory() |
Modifier and Type | Method and Description |
---|---|
ByteBufferSerializer<UnweightedDiscreteUncertainObject> |
getDefaultSerializer()
Get the default serializer for this type.
|
java.lang.Class<? super UnweightedDiscreteUncertainObject> |
getRestrictionClass()
Get the objects type restriction.
|
<A> UnweightedDiscreteUncertainObject |
newFeatureVector(A array,
ArrayAdapter<? extends java.lang.Number,A> adapter)
Returns a new FeatureVector of V for the given values.
|
public <A> UnweightedDiscreteUncertainObject newFeatureVector(A array, ArrayAdapter<? extends java.lang.Number,A> adapter)
FeatureVector.Factory
newFeatureVector
in interface FeatureVector.Factory<UnweightedDiscreteUncertainObject,java.lang.Number>
A
- Array typearray
- the values of the featureVectoradapter
- adapter classpublic ByteBufferSerializer<UnweightedDiscreteUncertainObject> getDefaultSerializer()
FeatureVector.Factory
null
when no serializer is available.getDefaultSerializer
in interface FeatureVector.Factory<UnweightedDiscreteUncertainObject,java.lang.Number>
public java.lang.Class<? super UnweightedDiscreteUncertainObject> getRestrictionClass()
FeatureVector.Factory
getRestrictionClass
in interface FeatureVector.Factory<UnweightedDiscreteUncertainObject,java.lang.Number>
Copyright © 2019 ELKI Development Team. License information.