p1: add exm stuff
This commit is contained in:
parent
880744f280
commit
2527b7b6ef
@ -172,6 +172,10 @@ def plot_mutual_correlation(d1: pd.DataFrame, d2: pd.DataFrame, fname: str = 'xy
|
||||
|
||||
def plot_autocorrelation(dat: pd.DataFrame, fname: str = 'x', colour: str = '#1f77b4'):
|
||||
d = auto_correlation(dat.tolist())
|
||||
# exm. TODO: check against matlab.
|
||||
# z = pd.Series([.4, .5, .23, 2.5, -3.6, .4, -0.12, 2.2, 0.02, 14.4])
|
||||
# a = auto_correlation(z.tolist())
|
||||
# print(a)
|
||||
pyplt.plot(range(0, len(d)), d, color=colour)
|
||||
pyplt.title('Autocorrelation of ' + fname + ' (R' + fname + fname + ')')
|
||||
pyplt.xlabel('shift')
|
||||
|
Loading…
Reference in New Issue
Block a user