scipp.logspace#

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

Constructs a Variable with values spaced evenly on a log scale.

This is similar to scipp.geomspace(), but with endpoints specified as exponents.

Parameters
  • dim (str) – Dimension label.

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

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

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

  • base (Union[int, float], default: 10.0) – The base of the log space.

  • 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.geomspace() scipp.arange() numpy.logspace()

Return type

Variable