Interface TrapezoidFloat

All Superinterfaces:
Comparable<ValueProvider>, FloatProvider, ValueProvider, Wrapper

@NullMarked @AsOf("3.0.0") public interface TrapezoidFloat extends FloatProvider
A trapezoid float provider: a random value with an isosceles trapezoidal distribution. The plateau() is the length of the range in the middle that has a uniform distribution; a plateau of 0 yields a triangular distribution.
Since:
3.0.0
See Also:
  • Method Details

    • plateau

      @AsOf("3.0.0") float plateau()
      The length of the range in the middle that has a uniform distribution.
      Returns:
      the plateau
      Since:
      3.0.0
    • toBuilder

      @AsOf("3.0.0") default TrapezoidFloat.Builder toBuilder()
      Converts this object back to a builder.
      Returns:
      a builder with the same values as this object
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static TrapezoidFloat of(float min, float max, float plateau)
      Creates a new trapezoid float provider.
      Parameters:
      min - the minimum value
      max - the maximum value
      plateau - the range in the middle that has a uniform distribution
      Returns:
      the trapezoid float provider
      Since:
      3.0.0
    • builder

      @AsOf("3.0.0") static TrapezoidFloat.Builder builder()
      Creates a new builder.
      Returns:
      a new builder
      Since:
      3.0.0