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