equal
deleted
inserted
replaced
345 |
345 |
346 \begin{frame}[fragile] |
346 \begin{frame}[fragile] |
347 \frametitle{Interpolation} |
347 \frametitle{Interpolation} |
348 Try it! |
348 Try it! |
349 \begin{lstlisting} |
349 \begin{lstlisting} |
350 >>> from scipy import interpolate |
350 >>> from scipy import interpolate |
351 >>> interpolate.interp1d? |
351 >>> interpolate.interp1d? |
352 >>> x = np.arange(0,2*np.pi,np.pi/4) |
352 >>> x = np.arange(0,2*np.pi,np.pi/4) |
353 >>> y = np.sin(x) |
353 >>> y = np.sin(x) |
354 >>> fl = interpolate.interp1d(x,y,kind='linear') |
354 >>> fl = interpolate.interp1d(x,y,kind='linear') |
355 >>> fc = interpolate.interp1d(x,y,kind='cubic') |
355 >>> fc = interpolate.interp1d(x,y,kind='cubic') |
356 >>> fl(np.pi/3) |
356 >>> fl(np.pi/3) |
357 >>> fc(np.pi/3) |
357 >>> fc(np.pi/3) |
358 \end{lstlisting} |
358 \end{lstlisting} |
359 \end{frame} |
359 \end{frame} |
360 |
360 |
361 \begin{frame}[fragile] |
361 \begin{frame}[fragile] |
362 \frametitle{Interpolation - Splines} |
362 \frametitle{Interpolation - Splines} |
422 - Numpy arrays (30 mins) |
422 - Numpy arrays (30 mins) |
423 - Matrices |
423 - Matrices |
424 - random number generation. |
424 - random number generation. |
425 - Image manipulation: jigsaw puzzle. |
425 - Image manipulation: jigsaw puzzle. |
426 - Monte-carlo integration. |
426 - Monte-carlo integration. |
427 |
|
428 |
|