pytorch_dedispersion.boxcar_filter
BoxcarFilter
Source code in pytorch_dedispersion/boxcar_filter.py
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | |
__init__
__init__(data_tensor)
Initialize BoxcarFilter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data_tensor
|
Tensor
|
The dedispersed data tensor. |
required |
Source code in pytorch_dedispersion/boxcar_filter.py
5 6 7 8 9 10 11 12 | |
apply_boxcar
apply_boxcar(widths)
Apply boxcar filtering with different widths.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
widths
|
list[int]
|
List of boxcar widths. |
required |
Returns:
| Type | Description |
|---|---|
Tensor
|
torch.Tensor: Boxcar filtered data for each width. |
Source code in pytorch_dedispersion/boxcar_filter.py
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | |