boulderopalscaleup.common.LogspaceIterable

class boulderopalscaleup.common.LogspaceIterable(*, dtype='logspace', start, stop, count=101, base=10)

A range of values spaced evenly on a logarithmic scale.

Creates values that are evenly spaced on a logarithmic scale, similar to numpy.logspace. The start/stop values indicate the exponents of the initial/final values.

Variables

  • dtype (Literal [ "logspace" ]) – Type discriminator for serialization.
  • start (float) – The starting exponent. The first value will be base^start.
  • stop (float) – The final exponent. The last value will be base^stop.
  • count (int) – The number of values to generate. Defaults to 101.
  • base (float) – The base of the logarithm. Must be greater than 0. Defaults to 10.

Was this useful?