Module math

Interface FeatureVector.Factory<V extends FeatureVector<? extends D>,D>

Type Parameters:
V - Vector type
D - Data type of vector
All Superinterfaces:
Parameterizable
All Known Subinterfaces:
NumberVector.Factory<V,N>
Enclosing interface:
FeatureVector<D>

public static interface FeatureVector.Factory<V extends FeatureVector<? extends D>,D> extends Parameterizable
Factory API for this feature vector.
Author:
Erich Schubert
  • Method Details

    • newFeatureVector

      <A> V newFeatureVector(A array, ArrayAdapter<D,A> adapter)
      Returns a new FeatureVector of V for the given values.
      Type Parameters:
      A - Array type
      Parameters:
      array - the values of the featureVector
      adapter - adapter class
      Returns:
      a new FeatureVector of V for the given values
    • getDefaultSerializer

      ByteBufferSerializer<V> getDefaultSerializer()
      Get the default serializer for this type. Note, this may be null when no serializer is available.
      Returns:
      Serializer
    • getRestrictionClass

      Class<? super V> getRestrictionClass()
      Get the objects type restriction.
      Returns:
      Restriction class