summaryrefslogtreecommitdiff
path: root/day1/session4.tex
diff options
context:
space:
mode:
Diffstat (limited to 'day1/session4.tex')
-rw-r--r--day1/session4.tex18
1 files changed, 14 insertions, 4 deletions
diff --git a/day1/session4.tex b/day1/session4.tex
index 3cff99c..bfff165 100644
--- a/day1/session4.tex
+++ b/day1/session4.tex
@@ -79,7 +79,7 @@
\author[FOSSEE] {FOSSEE}
\institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay}
-\date[] {7 November, 2009\\Day 1, Session 4}
+\date[] {11 January, 2010\\Day 1, Session 4}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\pgfdeclareimage[height=0.75cm]{iitmlogo}{iitmlogo}
@@ -287,8 +287,6 @@ In []: a = imread('lena.png')
In []: imshow(a)
Out[]: <matplotlib.image.AxesImage object at 0xa0384cc>
-In []: a.shape
-Out[]: (512, 512, 4)
\end{lstlisting}
\end{small}
\begin{itemize}
@@ -317,6 +315,11 @@ Out[]: <matplotlib.image.AxesImage object at 0xb765c8c>
\begin{frame}[fragile]
\frametitle{Transpose of a Matrix}
\begin{lstlisting}
+In []: a = array([[ 1, 1, 2, -1],
+ ...: [ 2, 5, -1, -9],
+ ...: [ 2, 1, -1, 3],
+ ...: [ 1, -3, 2, 7]])
+
In []: a.T
Out[]:
array([[ 1, 2, 2, 1],
@@ -485,7 +488,14 @@ Out[]: array([-1., 8., -1.])
\frametitle{\typ{lstsq}}
\begin{itemize}
\item We need to fit a line through points for the equation $T^2 = m \cdot L+c$
-\item In matrix form, the equation can be represented as $T^2 = A \cdot p$, where A is
+\item In matrix form, the equation can be represented as $T_{sq} = A \cdot p$, where $T_{sq}$ is
+ $\begin{bmatrix}
+ T^2_1 \\
+ T^2_2 \\
+ \vdots\\
+ T^2_N \\
+ \end{bmatrix}$
+, A is
$\begin{bmatrix}
L_1 & 1 \\
L_2 & 1 \\