Index#
- class gwpy.types.Index(
- value: astropy.units.Quantity | ArrayLike,
- unit=None,
- dtype=<class 'numpy.inexact'>,
- copy=True,
- order=None,
- subok=False,
- ndmin=0,
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: