private static class Vector.Factory extends Object implements NumberVector.Factory<Vector>
Modifier | Constructor and Description |
---|---|
private |
Vector.Factory() |
Modifier and Type | Method and Description |
---|---|
ByteBufferSerializer<Vector> |
getDefaultSerializer()
Get the default serializer for this type.
|
Class<? super Vector> |
getRestrictionClass()
Get the objects type restriction.
|
<A> Vector |
newFeatureVector(A array,
ArrayAdapter<? extends Number,A> adapter)
Returns a new FeatureVector of V for the given values.
|
<A> Vector |
newNumberVector(A array,
NumberArrayAdapter<?,? super A> adapter)
Instantiate from any number-array like object.
|
Vector |
newNumberVector(double[] values)
Returns a new NumberVector of N for the given values.
|
Vector |
newNumberVector(NumberVector values)
Returns a new NumberVector of N for the given values.
|
public <A> Vector newFeatureVector(A array, ArrayAdapter<? extends Number,A> adapter)
FeatureVector.Factory
newFeatureVector
in interface FeatureVector.Factory<Vector,Number>
A
- Array typearray
- the values of the featureVectoradapter
- adapter classpublic ByteBufferSerializer<Vector> getDefaultSerializer()
FeatureVector.Factory
null
when no serializer is available.getDefaultSerializer
in interface FeatureVector.Factory<Vector,Number>
public Class<? super Vector> getRestrictionClass()
FeatureVector.Factory
getRestrictionClass
in interface FeatureVector.Factory<Vector,Number>
public Vector newNumberVector(double[] values)
NumberVector.Factory
newNumberVector
in interface NumberVector.Factory<Vector>
values
- the values of the NumberVectorpublic <A> Vector newNumberVector(A array, NumberArrayAdapter<?,? super A> adapter)
NumberVector.Factory
newNumberVector
in interface NumberVector.Factory<Vector>
A
- Array typearray
- Arrayadapter
- Adapterpublic Vector newNumberVector(NumberVector values)
NumberVector.Factory
newNumberVector
in interface NumberVector.Factory<Vector>
values
- Existing number vectorCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.