Class AccessAnyD.SelectionView<N extends java.lang.Comparable<N>>

    • Field Detail

      • myFullData

        private final AccessAnyD<N extends java.lang.Comparable<N>> myFullData
      • mySelections

        private final long[][] mySelections
      • myShape

        private final long[] myShape
    • Constructor Detail

      • SelectionView

        SelectionView​(AccessAnyD<N> fullData,
                      long[][] selections)
    • Method Detail

      • count

        public long count()
        Description copied from interface: Structure1D
        The total number of elements in this structure.

        You only need to implement this method if the structure can contain more than Integer.MAX_VALUE elements.

        Specified by:
        count in interface Structure1D
      • count

        public long count​(int dimension)
        Description copied from interface: StructureAnyD
        count() == count(0) * count(1) * count(2) * count(3) * ...
        Specified by:
        count in interface StructureAnyD
      • doubleValue

        public double doubleValue​(int index)
        Specified by:
        doubleValue in interface Access1D<N extends java.lang.Comparable<N>>
      • doubleValue

        public double doubleValue​(long index)
        Specified by:
        doubleValue in interface Access1D<N extends java.lang.Comparable<N>>
      • doubleValue

        public double doubleValue​(long... ref)
        Specified by:
        doubleValue in interface AccessAnyD<N extends java.lang.Comparable<N>>
      • get

        public N get​(long... ref)
        Specified by:
        get in interface AccessAnyD<N extends java.lang.Comparable<N>>
      • get

        public N get​(long index)
        Specified by:
        get in interface Access1D<N extends java.lang.Comparable<N>>
      • size

        public int size()
        Description copied from interface: Structure1D
        The total number of elements in this structure.
        Specified by:
        size in interface Structure1D
      • size

        public int size​(int dimension)
        Specified by:
        size in interface StructureAnyD
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • translate

        private long[] translate​(long[] filteredRef)
      • translate

        private void translate​(long[] filteredRef,
                               long[] fullRef)