Interface ModuleComputation

    • Method Detail

      • getPingBufferRadius

        int getPingBufferRadius()
        The (maximum) number of pings that should be made available for reading on either side of the center ping. The total number of pings accessible will be up to 2 × PingBufferRadius + 1. At the beginning and end of the file fewer pings will be available, as specified by the functions PingBuffer.getBeginIndex() and PingBuffer.getEndIndex().
        Returns:
        number of read-only pings on either side of the center ping.
      • compute

        void compute​(PingBuffer aPingBuffer)
        The computation implementation.

        Note: Only the center ping, with index 0, should be modified.

        Parameters:
        aPingBuffer - the buffer containing the accessible ping.