Class FeatureSelection.ProjectedNumberFeatureVectorAdapter

    • Constructor Detail

      • ProjectedNumberFeatureVectorAdapter

        private ProjectedNumberFeatureVectorAdapter()
    • Method Detail

      • get

        public java.lang.Double get​(NumberVector 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<java.lang.Double,​NumberVector>
        Specified by:
        get in interface NumberArrayAdapter<java.lang.Double,​NumberVector>
        Parameters:
        array - Array to get from
        off - Offset
        Returns:
        Item at offset off
        Throws:
        java.lang.IndexOutOfBoundsException - for an invalid index.
      • getDouble

        public double getDouble​(NumberVector array,
                                int off)
                         throws java.lang.IndexOutOfBoundsException
        Description copied from interface: NumberArrayAdapter
        Get the off'th item from the array as double.
        Specified by:
        getDouble in interface NumberArrayAdapter<java.lang.Double,​NumberVector>
        Parameters:
        array - Array to get from
        off - Offset
        Returns:
        Item at offset off
        Throws:
        java.lang.IndexOutOfBoundsException - for an invalid index.
      • getLong

        public long getLong​(NumberVector array,
                            int off)
                     throws java.lang.IndexOutOfBoundsException
        Description copied from interface: NumberArrayAdapter
        Get the off'th item from the array as long.
        Specified by:
        getLong in interface NumberArrayAdapter<java.lang.Double,​NumberVector>
        Parameters:
        array - Array to get from
        off - Offset
        Returns:
        Item at offset off
        Throws:
        java.lang.IndexOutOfBoundsException - for an invalid index.