Class FeatureSelection.ProjectedFeatureVectorAdapter

  • All Implemented Interfaces:
    ArrayAdapter<F,​V>
    Enclosing class:
    FeatureSelection<V extends FeatureVector<F>,​F>

    private class FeatureSelection.ProjectedFeatureVectorAdapter
    extends java.lang.Object
    implements ArrayAdapter<F,​V>
    Generic projection function
    Author:
    Erich Schubert
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      F get​(V array, int off)
      Get the off'th item from the array.
      int size​(V 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

      • ProjectedFeatureVectorAdapter

        private ProjectedFeatureVectorAdapter()
    • Method Detail

      • size

        public int size​(V array)
        Description copied from interface: ArrayAdapter
        Get the size of the array.
        Specified by:
        size in interface ArrayAdapter<F,​V extends FeatureVector<F>>
        Parameters:
        array - Array-like thing
        Returns:
        Size
      • get

        public F get​(V array,
                     int off)
              throws java.lang.IndexOutOfBoundsException
        Description copied from interface: ArrayAdapter
        Get the off'th item from the array.
        Specified by:
        get in interface ArrayAdapter<F,​V extends FeatureVector<F>>
        Parameters:
        array - Array to get from
        off - Offset
        Returns:
        Item at offset off
        Throws:
        java.lang.IndexOutOfBoundsException - for an invalid index.