scipp.geomspace#

scipp.geomspace(dim, start, stop, num, *, endpoint=True, unit=<scipp._scipp.core.DefaultUnit object>, dtype=None)#

Constructs a Variable with values spaced evenly on a log scale (a geometric progression).

This is similar to scipp.logspace(), but with endpoints specified directly instead of as exponents. Each output sample is a constant multiple of the previous.

Parameters
  • dim (str) – Dimension label.

  • start (Union[int, float]) – The starting value of the sequence.

  • stop (Union[int, float]) – The end value of the sequence.

  • num (int) – Number of samples to generate.

  • endpoint (bool, default: True) – If True, step is the last returned value. Otherwise, it is not included.

  • unit (Union[Unit, str, None], default: <scipp._scipp.core.DefaultUnit object at 0x7f4add16b330>) – Optional, data unit. Default=dimensionless

  • dtype (Optional[DType], default: None) – Optional, type of underlying data. Default=None, in which case type is inferred from value input.

Seealso

scipp.linspace() scipp.logspace() scipp.arange() numpy.geomspace()

Return type

Variable