1{{ objname }} 2{{ underline }}{{ underline }} 3 4.. plot:: 5 :include-source: False 6 7 import openturns as ot 8 from matplotlib import pyplot as plt 9 from openturns.viewer import View 10 11 filteringWindow = ot.{{ objname }}() 12 numPoints = 512 13 data = ot.Sample(numPoints, 2) 14 for i in range(numPoints): 15 x = -0.1 + (1.2 * i) / (numPoints - 1.0) 16 data[i, 0] = x 17 data[i, 1] = filteringWindow(x) 18 graph = ot.Graph(str(filteringWindow), '$tau$', 'W', True) 19 graph.add(ot.Curve(data)) 20 graph.setColors(['red']) 21 fig = plt.figure(figsize=(10, 4)) 22 filtering_axis = fig.add_subplot(111) 23 View(graph, figure=fig, axes=[filtering_axis], add_legend=False) 24 25.. currentmodule:: {{ module }} 26 27.. autoclass:: {{ objname }} 28 29 {% block methods %} 30 .. automethod:: __init__ 31 {% endblock %} 32