Index#
- class gwpy.types.Index(value: astropy.units.Quantity | ~collections.abc.Buffer | ~numpy._typing._array_like._SupportsArray[~numpy.dtype[~typing.Any]] | ~numpy._typing._nested_sequence._NestedSequence[~numpy._typing._array_like._SupportsArray[~numpy.dtype[~typing.Any]]] | complex | bytes | str | ~numpy._typing._nested_sequence._NestedSequence[complex | bytes | str], unit=None, dtype=<class 'numpy.inexact'>, copy=True, order=None, subok=False, ndmin=0)[source]#
Bases:
Quantity1-D
Quantityarray for indexing aSeries.See also
astropy.units.QuantityFor parameters supported when creating an
Indexarray.
Attributes Summary
Methods Summary
define(start, step, num[, dtype])Define a new
Indexusingnumpy.arange.Determine whether this
Indexcontains linearly increasing samples.Attributes Documentation
Methods Documentation
- classmethod define( ) Self[source]#
Define a new
Indexusingnumpy.arange.The output is basically:
start + numpy.arange(num) * step
- Parameters:
- start
Number The starting value of the index.
- step
Number The step size of the index.
- num
int The size of the index (number of samples).
- dtype
numpy.dtype,None, optional The desired dtype of the index, if not given, defaults to the higher-precision dtype from
startandstep.
- start
- Returns: