private static class WeightedDiscreteUncertainObject.Factory extends java.lang.Object implements FeatureVector.Factory<WeightedDiscreteUncertainObject,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<WeightedDiscreteUncertainObject> |
getDefaultSerializer()
Get the default serializer for this type.
|
java.lang.Class<? super WeightedDiscreteUncertainObject> |
getRestrictionClass()
Get the objects type restriction.
|
<A> WeightedDiscreteUncertainObject |
newFeatureVector(A array,
ArrayAdapter<? extends java.lang.Number,A> adapter)
Returns a new FeatureVector of V for the given values.
|
public <A> WeightedDiscreteUncertainObject newFeatureVector(A array, ArrayAdapter<? extends java.lang.Number,A> adapter)
FeatureVector.Factory
newFeatureVector
in interface FeatureVector.Factory<WeightedDiscreteUncertainObject,java.lang.Number>
A
- Array typearray
- the values of the featureVectoradapter
- adapter classpublic ByteBufferSerializer<WeightedDiscreteUncertainObject> getDefaultSerializer()
FeatureVector.Factory
null
when no serializer is available.getDefaultSerializer
in interface FeatureVector.Factory<WeightedDiscreteUncertainObject,java.lang.Number>
public java.lang.Class<? super WeightedDiscreteUncertainObject> getRestrictionClass()
FeatureVector.Factory
getRestrictionClass
in interface FeatureVector.Factory<WeightedDiscreteUncertainObject,java.lang.Number>
Copyright © 2019 ELKI Development Team. License information.