Class GeometricVariable

  • All Implemented Interfaces:
    it.unibo.alchemist.boundary.Variable , java.io.Serializable , java.lang.Iterable

    
    public final class GeometricVariable
    extends PrintableVariable<V>
                        

    A variable ranging geometrically (exponentially) in a range. Ideal for log-scale comparisons. E.g., a GeometricVariable with minimum = 1, maximum = 100 and samples = 5 will range over [1, ~3.16, 10, ~31.62 100]. Both min and max must be strictly bigger than 0.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      GeometricVariable(double def, double min, double max, int samples)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Double getDefault()
      Stream<Double> stream()
      String toString()
      • Methods inherited from class it.unibo.alchemist.boundary.Variable

        iterator, steps
      • Methods inherited from class java.lang.Iterable

        forEach, iterator, spliterator
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GeometricVariable

        GeometricVariable(double def, double min, double max, int samples)
        Parameters:
        def - default value
        min - minimum value
        max - maximum value
        samples - number of samples (must be bigger than zero)