mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-17 10:08:05 +00:00
feat(filters): add NET - Ehlers Noise Elimination Technology (TASC Dec 2020)
This commit is contained in:
@@ -38,6 +38,7 @@ __all__ = [
|
||||
"cheby2",
|
||||
"elliptic",
|
||||
"edcf",
|
||||
"net",
|
||||
"bpf",
|
||||
"alaguerre",
|
||||
"bilateral",
|
||||
@@ -377,6 +378,14 @@ def edcf(close: object, period: int = 14, offset: int = 0, **kwargs) -> object:
|
||||
return _wrap(dst, idx, f"EDCF_{period}", "filters", offset)
|
||||
|
||||
|
||||
def net(close: object, period: int = 14, offset: int = 0, **kwargs) -> object:
|
||||
"""Ehlers Noise Elimination Technology."""
|
||||
period = int(kwargs.get("length", period)); offset = int(offset)
|
||||
src, idx = _arr(close); n = len(src); dst = _out(n)
|
||||
_check(_lib.qtl_net(_ptr(src), n, _ptr(dst), period))
|
||||
return _wrap(dst, idx, f"NET_{period}", "filters", offset)
|
||||
|
||||
|
||||
def bpf(close: object, period: int = 14, bandwidth: int = 5,
|
||||
offset: int = 0, **kwargs) -> object:
|
||||
"""Bandpass Filter."""
|
||||
|
||||
Reference in New Issue
Block a user