Interface ContinuousSampler

    • Method Detail

      • sample

        double sample()
        Creates a double sample.
        Returns:
        a sample.
      • samples

        default DoubleStream samples()
        Returns an effectively unlimited stream of double sample values.

        The default implementation produces a sequential stream that repeatedly calls sample().

        Returns:
        a stream of double values.
        Since:
        1.5
      • samples

        default DoubleStream samples​(long streamSize)
        Returns a stream producing the given streamSize number of double sample values.

        The default implementation produces a sequential stream that repeatedly calls sample(); the stream is limited to the given streamSize.

        Parameters:
        streamSize - Number of values to generate.
        Returns:
        a stream of double values.
        Since:
        1.5