Class FeatureVectorAdapter<F>

  • Type Parameters:
    F - Feature type
    All Implemented Interfaces:
    ArrayAdapter<F,​FeatureVector<F>>

    public final class FeatureVectorAdapter<F>
    extends java.lang.Object
    implements ArrayAdapter<F,​FeatureVector<F>>
    Adapter to use a feature vector as an array of features.

    Use the static instance from ArrayLikeUtil!

    Since:
    0.5.0
    Author:
    Erich Schubert
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private FeatureVectorAdapter()
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      F get​(FeatureVector<F> array, int off)
      Get the off'th item from the array.
      int size​(FeatureVector<F> array)
      Get the size of the array.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FeatureVectorAdapter

        private FeatureVectorAdapter()
        Constructor.

        Use the static instance from ArrayLikeUtil!