Skip to content

Instantly share code, notes, and snippets.

View BKJackson's full-sized avatar

BK Jackson BKJackson

  • Fuzzy Bunny Labs
  • Brooklyn, NY
View GitHub Profile
@BKJackson
BKJackson / fourex.py
Created January 27, 2018 21:13 — forked from tartakynov/fourex.py
Fourier Extrapolation in Python
import numpy as np
import pylab as pl
from numpy import fft
def fourierExtrapolation(x, n_predict):
n = x.size
n_harm = 10 # number of harmonics in model
t = np.arange(0, n)
p = np.polyfit(t, x, 1) # find linear trend in x
x_notrend = x - p[0] * t # detrended x
@BKJackson
BKJackson / README.md
Created October 24, 2015 21:24 — forked from tmcw/README.md
GIS with Python, Shapely, and Fiona Example 1 - CSV Files