|
2 | 2 | This module implements :class:`AnalogSignal`, an array of analog signals. |
3 | 3 |
|
4 | 4 | :class:`AnalogSignal` inherits from :class:`basesignal.BaseSignal` which |
5 | | -derives from :class:`BaseNeo`, and from :class:`quantites.Quantity`which |
| 5 | +derives from :class:`BaseNeo`, and from :class:`quantities.Quantity`which |
6 | 6 | in turn inherits from :class:`numpy.array`. |
7 | 7 |
|
8 | 8 | Inheritance from :class:`numpy.array` is explained here: |
@@ -481,13 +481,13 @@ def time_shift(self, t_shift): |
481 | 481 | """ |
482 | 482 | Shifts a :class:`AnalogSignal` to start at a new time. |
483 | 483 |
|
484 | | - Parameters: |
485 | | - ----------- |
| 484 | + Parameters |
| 485 | + ---------- |
486 | 486 | t_shift: Quantity (time) |
487 | 487 | Amount of time by which to shift the :class:`AnalogSignal`. |
488 | 488 |
|
489 | | - Returns: |
490 | | - -------- |
| 489 | + Returns |
| 490 | + ------- |
491 | 491 | new_sig: :class:`AnalogSignal` |
492 | 492 | New instance of a :class:`AnalogSignal` object starting at t_shift later than the |
493 | 493 | original :class:`AnalogSignal` (the original :class:`AnalogSignal` is not modified). |
@@ -538,19 +538,19 @@ def downsample(self, downsampling_factor, **kwargs): |
538 | 538 | arguments, except for specifying the axis of resampling, which is fixed to the first axis |
539 | 539 | here. |
540 | 540 |
|
541 | | - Parameters: |
542 | | - ----------- |
543 | | - downsampling_factor: integer |
| 541 | + Parameters |
| 542 | + ---------- |
| 543 | + downsampling_factor: int |
544 | 544 | Factor used for decimation of samples. Scipy recommends to call decimate multiple times |
545 | 545 | for downsampling factors higher than 13 when using IIR downsampling (default). |
546 | 546 |
|
547 | | - Returns: |
548 | | - -------- |
| 547 | + Returns |
| 548 | + ------- |
549 | 549 | downsampled_signal: :class:`AnalogSignal` |
550 | 550 | New instance of a :class:`AnalogSignal` object containing the resampled data points. |
551 | 551 | The original :class:`AnalogSignal` is not modified. |
552 | 552 |
|
553 | | - Note: |
| 553 | + Notes |
554 | 554 | ----- |
555 | 555 | For resampling the signal with a fixed number of samples, see `resample` method. |
556 | 556 | """ |
@@ -581,19 +581,19 @@ def resample(self, sample_count, **kwargs): |
581 | 581 | arguments, except for specifying the axis of resampling which is fixed to the first axis |
582 | 582 | here, and the sample positions. . |
583 | 583 |
|
584 | | - Parameters: |
585 | | - ----------- |
586 | | - sample_count: integer |
| 584 | + Parameters |
| 585 | + ---------- |
| 586 | + sample_count: int |
587 | 587 | Number of desired samples. The resulting signal starts at the same sample as the |
588 | 588 | original and is sampled regularly. |
589 | 589 |
|
590 | | - Returns: |
591 | | - -------- |
| 590 | + Returns |
| 591 | + ------- |
592 | 592 | resampled_signal: :class:`AnalogSignal` |
593 | 593 | New instance of a :class:`AnalogSignal` object containing the resampled data points. |
594 | 594 | The original :class:`AnalogSignal` is not modified. |
595 | 595 |
|
596 | | - Note: |
| 596 | + Notes |
597 | 597 | ----- |
598 | 598 | For reducing the number of samples to a fraction of the original, see `downsample` method |
599 | 599 | """ |
@@ -625,8 +625,8 @@ def rectify(self, **kwargs): |
625 | 625 | This method is a wrapper of numpy.absolute() and accepts the same set of keyword |
626 | 626 | arguments. |
627 | 627 |
|
628 | | - Returns: |
629 | | - -------- |
| 628 | + Returns |
| 629 | + ------- |
630 | 630 | resampled_signal: :class:`AnalogSignal` |
631 | 631 | New instance of a :class:`AnalogSignal` object containing the rectified data points. |
632 | 632 | The original :class:`AnalogSignal` is not modified. |
|
0 commit comments