harr_wavelet
Bases: discrete_wavelet
Haar wavelet implementation.
This wavelet is piecewise constant with values 1 or -1 over specific intervals.
Source code in tinybig/koala/signal_processing/wavelet.py
__init__(name='harr_wavelet', *args, **kwargs)
Initialize the Haar wavelet.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str
|
Name of the wavelet. Default is 'harr_wavelet'. |
'harr_wavelet'
|
*args
|
Additional parameters. |
()
|
|
**kwargs
|
Additional parameters. |
()
|
Source code in tinybig/koala/signal_processing/wavelet.py
psi(tau)
Define the Haar wavelet function.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
tau
|
Tensor
|
Transformed input values. |
required |
Returns:
Type | Description |
---|---|
Tensor
|
Wavelet values for the input. |