Package elki.data.uncertain
Class WeightedDiscreteUncertainObject.Factory
- java.lang.Object
-
- elki.data.uncertain.WeightedDiscreteUncertainObject.Factory
-
- All Implemented Interfaces:
FeatureVector.Factory<WeightedDiscreteUncertainObject,java.lang.Number>
- Enclosing class:
- WeightedDiscreteUncertainObject
private static class WeightedDiscreteUncertainObject.Factory extends java.lang.Object implements FeatureVector.Factory<WeightedDiscreteUncertainObject,java.lang.Number>
Factory class for this data type. Not for public use, useUncertainifier
to derive uncertain objects from certain vectors.TODO: provide serialization functionality.
- Author:
- Erich Schubert
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Factory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
newFeatureVector
public <A> WeightedDiscreteUncertainObject newFeatureVector(A array, ArrayAdapter<? extends java.lang.Number,A> adapter)
Description copied from interface:FeatureVector.Factory
Returns a new FeatureVector of V for the given values.- Specified by:
newFeatureVector
in interfaceFeatureVector.Factory<WeightedDiscreteUncertainObject,java.lang.Number>
- Type Parameters:
A
- Array type- Parameters:
array
- the values of the featureVectoradapter
- adapter class- Returns:
- a new FeatureVector of V for the given values
-
getDefaultSerializer
public ByteBufferSerializer<WeightedDiscreteUncertainObject> getDefaultSerializer()
Description copied from interface:FeatureVector.Factory
Get the default serializer for this type.Note, this may be
null
when no serializer is available.- Specified by:
getDefaultSerializer
in interfaceFeatureVector.Factory<WeightedDiscreteUncertainObject,java.lang.Number>
- Returns:
- Serializer
-
getRestrictionClass
public java.lang.Class<? super WeightedDiscreteUncertainObject> getRestrictionClass()
Description copied from interface:FeatureVector.Factory
Get the objects type restriction.- Specified by:
getRestrictionClass
in interfaceFeatureVector.Factory<WeightedDiscreteUncertainObject,java.lang.Number>
- Returns:
- Restriction class
-
-