public static class DoubleVector.Factory extends java.lang.Object implements NumberVector.Factory<DoubleVector>
Modifier and Type | Class and Description |
---|---|
static class |
DoubleVector.Factory.Parameterizer
Parameterization class.
|
Constructor and Description |
---|
Factory() |
Modifier and Type | Method and Description |
---|---|
ByteBufferSerializer<DoubleVector> |
getDefaultSerializer()
Get the default serializer for this type.
|
java.lang.Class<? super DoubleVector> |
getRestrictionClass()
Get the objects type restriction.
|
<A> DoubleVector |
newFeatureVector(A array,
ArrayAdapter<? extends java.lang.Number,A> adapter)
Returns a new FeatureVector of V for the given values.
|
<A> DoubleVector |
newNumberVector(A array,
NumberArrayAdapter<?,? super A> adapter)
Instantiate from any number-array like object.
|
DoubleVector |
newNumberVector(double[] values)
Returns a new NumberVector of N for the given values.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
newNumberVector
public DoubleVector newNumberVector(double[] values)
NumberVector.Factory
newNumberVector
in interface NumberVector.Factory<DoubleVector>
values
- the values of the NumberVectorpublic <A> DoubleVector newFeatureVector(A array, ArrayAdapter<? extends java.lang.Number,A> adapter)
FeatureVector.Factory
newFeatureVector
in interface FeatureVector.Factory<DoubleVector,java.lang.Number>
A
- Array typearray
- the values of the featureVectoradapter
- adapter classpublic <A> DoubleVector newNumberVector(A array, NumberArrayAdapter<?,? super A> adapter)
NumberVector.Factory
newNumberVector
in interface NumberVector.Factory<DoubleVector>
A
- Array typearray
- Arrayadapter
- Adapterpublic ByteBufferSerializer<DoubleVector> getDefaultSerializer()
FeatureVector.Factory
null
when no serializer is available.getDefaultSerializer
in interface FeatureVector.Factory<DoubleVector,java.lang.Number>
public java.lang.Class<? super DoubleVector> getRestrictionClass()
FeatureVector.Factory
getRestrictionClass
in interface FeatureVector.Factory<DoubleVector,java.lang.Number>
Copyright © 2019 ELKI Development Team. License information.