Skip to content

Instantly share code, notes, and snippets.

View tokahuke's full-sized avatar

Pedro B. Arruda tokahuke

View GitHub Profile
@tokahuke
tokahuke / ama.py
Created January 27, 2023 01:00
Adaptative moving average using a Hidden Auto-Regressive process
##
# Copyright 2023 Pedro Bittencourt Arruda
# This work is licensed under a Creative Commons Attribution 4.0 International License.
#
#
# # TL; DR:
#
# Use the function `smooth` to put in a list of numbers and get the smoothed list of
# numbers as the returned value. If you care about confidence intervals `smooth_full`
# will als give you the standard deviations.