data_operations.robust_power_filter#
Back to Module page
Summary#
Signature#
def robust_power_filter(times, power_sequence, mask_times, avg_len, avoid_len = 1)
Name |
Type |
Default |
Description |
|---|---|---|---|
|
Array with central times of intervals in which power was measured |
||
|
Array with measured power in intervals |
||
|
Boolean mask indicating whether interval sees an existing hole |
||
|
Number of intervals that moving average test spans |
||
|
1 |
Excess power is correlated, avoid these many intervals around central one |
Output variables#
Return annotation |
Docstring type |
Description |
|---|---|---|
|
Array with central times, excess power with moving average subtracted, and Boolean mask into times |
Docstring#
:param times: Array with central times of intervals in which power was
measured
:param power_sequence: Array with measured power in intervals
:param mask_times: Boolean mask indicating whether interval sees an
existing hole
:param avg_len: Number of intervals that moving average test spans
:param avoid_len: Excess power is correlated, avoid these many intervals
around central one
:return: Array with central times, excess power with moving average
subtracted, and Boolean mask into times