p2(visualise): add mutual/auto-correlation
This commit is contained in:
parent
a46d1403c3
commit
c54e5a342b
BIN
p2/res/autocorrelation_u.png
Normal file
BIN
p2/res/autocorrelation_u.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 51 KiB |
BIN
p2/res/autocorrelation_y.png
Normal file
BIN
p2/res/autocorrelation_y.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 40 KiB |
BIN
p2/res/mutual_correlation_uy.png
Normal file
BIN
p2/res/mutual_correlation_uy.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 44 KiB |
BIN
p2/res/mutual_correlation_yu.png
Normal file
BIN
p2/res/mutual_correlation_yu.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 46 KiB |
@ -53,3 +53,51 @@ fig = lp.get_figure()
|
||||
fig.subplots_adjust(top=.97)
|
||||
fig.savefig('res/impulse_func_estimate.png')
|
||||
plt.clf()
|
||||
|
||||
acr=pd.read_csv('data/autocorrelation_u.csv')
|
||||
lp = sb.lineplot(data=acr, legend=False, linewidth=2.5)
|
||||
lp.set(
|
||||
title='Autocorrelation U',
|
||||
xlabel='shift',
|
||||
ylabel='Ruu',
|
||||
)
|
||||
fig = lp.get_figure()
|
||||
fig.subplots_adjust(top=.97)
|
||||
fig.savefig('res/autocorrelation_u.png')
|
||||
plt.clf()
|
||||
|
||||
acr=pd.read_csv('data/autocorrelation_y.csv')
|
||||
lp = sb.lineplot(data=acr, legend=False, linewidth=2.5)
|
||||
lp.set(
|
||||
title='Autocorrelation Y',
|
||||
xlabel='shift',
|
||||
ylabel='Ryy',
|
||||
)
|
||||
fig = lp.get_figure()
|
||||
fig.subplots_adjust(top=.97)
|
||||
fig.savefig('res/autocorrelation_y.png')
|
||||
plt.clf()
|
||||
|
||||
mcr=pd.read_csv('data/mutual_correlation_uy.csv')
|
||||
lp = sb.lineplot(data=mcr, legend=False, linewidth=2.5)
|
||||
lp.set(
|
||||
title='Mutual correlation UY',
|
||||
xlabel='shift',
|
||||
ylabel='Ruy',
|
||||
)
|
||||
fig = lp.get_figure()
|
||||
fig.subplots_adjust(top=.97)
|
||||
fig.savefig('res/mutual_correlation_uy.png')
|
||||
plt.clf()
|
||||
|
||||
mcr=pd.read_csv('data/mutual_correlation_yu.csv')
|
||||
lp = sb.lineplot(data=mcr, legend=False, linewidth=2.5)
|
||||
lp.set(
|
||||
title='Mutual correlation YU',
|
||||
xlabel='shift',
|
||||
ylabel='Ryu',
|
||||
)
|
||||
fig = lp.get_figure()
|
||||
fig.subplots_adjust(top=.97)
|
||||
fig.savefig('res/mutual_correlation_yu.png')
|
||||
plt.clf()
|
||||
|
Loading…
Reference in New Issue
Block a user