Test: Error of the median filter with different wave number, with higher sample rate (2015.10.14. DW)


In [1]:
import numpy as np
import matplotlib.pyplot as plt
import sys
#Add a new path with needed .py files
sys.path.insert(0, 'C:\Users\Dominik\Documents\GitRep\kt-2015-DSPHandsOn\MedianFilter\Python') 

import functions
import gitInformation

In [2]:
gitInformation.printInformation()


Information about this notebook
============================================================
Date: 2015-11-10
Python Version: 2.7.10 |Anaconda 2.3.0 (64-bit)| (default, May 28 2015, 16:44:52) [MSC v.1500 64 bit (AMD64)]
Git directory: C:\Users\Dominik\Documents\GitRep\kt-2015-DSPHandsOn\.git
Current git SHA: 3d75389fd98bd111b1e723db4da574f17ba90e9b
Remotes: fork, origin, 
Current branch: master
fork remote URL: http://github.com/dowa4213/kt-2015-DSPHandsOn.git
origin remote URL: https://github.com/ktakagaki/kt-2015-DSPHandsOn.git

In [3]:
% matplotlib inline

Testing with more samples ( now 1024, before 128)

Plots


In [5]:
fig = plt.figure()
for i in range (0, 40):
    functions.ErrorPlotWave(i, 127,1024)


With more samples the error rate at wave number 16 and 32 is no longer lower then expected.


In [7]:
fig = plt.figure(1, figsize=(15, 3))
functions.medianSinPlot(15, 127)
plt.title('Wave number 15')
fig = plt.figure(2, figsize=(15, 3)) 
functions.medianSinPlot(16, 127)
plt.title('Wave number 16')
fig = plt.figure(3, figsize=(15, 3)) 
functions.medianSinPlot(17, 127)
plt.title('Wave number 17')


Out[7]:
<matplotlib.text.Text at 0x16d82c18>

In [7]:
fig = plt.figure(1, figsize=(15, 3))
functions.medianSinPlot(31, 127,1024)
plt.title('Wave number 31')
fig = plt.figure(2, figsize=(15, 3)) 
functions.medianSinPlot(32, 127,1024)
plt.title('Wave number 32')
fig = plt.figure(3, figsize=(15, 3)) 
functions.medianSinPlot(33, 127,1024)
plt.title('Wave number 33')


Out[7]:
<matplotlib.text.Text at 0x16c6feb8>