Package elki.data

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

    • Method Detail

      • newFeatureVector

        <A> V newFeatureVector​(A array,
                               ArrayAdapter<? extends 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

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