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