Package elki.data.uncertain
Class UnweightedDiscreteUncertainObject.Factory
- java.lang.Object
-
- elki.data.uncertain.UnweightedDiscreteUncertainObject.Factory
-
- All Implemented Interfaces:
FeatureVector.Factory<UnweightedDiscreteUncertainObject,java.lang.Number>
- Enclosing class:
- UnweightedDiscreteUncertainObject
private static class UnweightedDiscreteUncertainObject.Factory extends java.lang.Object implements FeatureVector.Factory<UnweightedDiscreteUncertainObject,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<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.
-
-
-
Method Detail
-
newFeatureVector
public <A> UnweightedDiscreteUncertainObject 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<UnweightedDiscreteUncertainObject,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<UnweightedDiscreteUncertainObject> 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<UnweightedDiscreteUncertainObject,java.lang.Number>
- Returns:
- Serializer
-
getRestrictionClass
public java.lang.Class<? super UnweightedDiscreteUncertainObject> getRestrictionClass()
Description copied from interface:FeatureVector.Factory
Get the objects type restriction.- Specified by:
getRestrictionClass
in interfaceFeatureVector.Factory<UnweightedDiscreteUncertainObject,java.lang.Number>
- Returns:
- Restriction class
-
-