added more text
This commit is contained in:
@@ -190,6 +190,7 @@ Automatically generated HTML file from DocOnce source
|
||||
'layers-used-to-build-cnns'),
|
||||
('Transforming images', 2, None, 'transforming-images'),
|
||||
('CNNs in brief', 2, None, 'cnns-in-brief'),
|
||||
('Key Idea', 2, None, 'key-idea'),
|
||||
('Mathematics of CNNs', 2, None, 'mathematics-of-cnns'),
|
||||
('Convolution Examples: Polynomial multiplication',
|
||||
2,
|
||||
@@ -358,37 +359,38 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs057.html#layers-used-to-build-cnns" style="font-size: 80%;">Layers used to build CNNs</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs058.html#transforming-images" style="font-size: 80%;">Transforming images</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs059.html#cnns-in-brief" style="font-size: 80%;">CNNs in brief</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs060.html#mathematics-of-cnns" style="font-size: 80%;">Mathematics of CNNs</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs061.html#convolution-examples-polynomial-multiplication" style="font-size: 80%;">Convolution Examples: Polynomial multiplication</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs062.html#efficient-polynomial-multiplication" style="font-size: 80%;">Efficient Polynomial Multiplication</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs063.html#a-more-efficient-way-of-coding-the-above-convolution" style="font-size: 80%;">A more efficient way of coding the above Convolution</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs064.html#convolution-examples-principle-of-superposition-and-periodic-forces-fourier-transforms" style="font-size: 80%;">Convolution Examples: Principle of Superposition and Periodic Forces (Fourier Transforms)</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs065.html#principle-of-superposition" style="font-size: 80%;">Principle of Superposition</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs066.html#simple-code-example" style="font-size: 80%;">Simple Code Example</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs067.html#wrapping-up-fourier-transforms" style="font-size: 80%;">Wrapping up Fourier transforms</a></li>
|
||||
<!-- navigation toc: --> <li><a href="#finding-the-coefficients" style="font-size: 80%;">Finding the Coefficients</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs069.html#final-words-on-fourier-transforms" style="font-size: 80%;">Final words on Fourier Transforms</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs070.html#two-dimensional-objects" style="font-size: 80%;">Two-dimensional Objects</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs071.html#cross-correlation" style="font-size: 80%;">Cross-Correlation</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs072.html#more-on-dimensionalities" style="font-size: 80%;">More on Dimensionalities</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs073.html#further-dimensionality-remarks" style="font-size: 80%;">Further Dimensionality Remarks</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs074.html#cnns-in-more-detail-building-convolutional-neural-networks-in-tensorflow-and-keras" style="font-size: 80%;">CNNs in more detail, building convolutional neural networks in Tensorflow and Keras</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs075.html#setting-it-up" style="font-size: 80%;">Setting it up</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs076.html#the-mnist-dataset-again" style="font-size: 80%;">The MNIST dataset again</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs077.html#strong-correlations" style="font-size: 80%;">Strong correlations</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs078.html#layers-of-a-cnn" style="font-size: 80%;">Layers of a CNN</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs079.html#systematic-reduction" style="font-size: 80%;">Systematic reduction</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs080.html#prerequisites-collect-and-pre-process-data" style="font-size: 80%;">Prerequisites: Collect and pre-process data</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs081.html#importing-keras-and-tensorflow" style="font-size: 80%;">Importing Keras and Tensorflow</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs082.html#running-with-keras" style="font-size: 80%;">Running with Keras</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs083.html#final-part" style="font-size: 80%;">Final part</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs084.html#final-visualization" style="font-size: 80%;">Final visualization</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs085.html#the-cifar01-data-set" style="font-size: 80%;">The CIFAR01 data set</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs086.html#verifying-the-data-set" style="font-size: 80%;">Verifying the data set</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs087.html#set-up-the-model" style="font-size: 80%;">Set up the model</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs088.html#add-dense-layers-on-top" style="font-size: 80%;">Add Dense layers on top</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs089.html#compile-and-train-the-model" style="font-size: 80%;">Compile and train the model</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs090.html#finally-evaluate-the-model" style="font-size: 80%;">Finally, evaluate the model</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs060.html#key-idea" style="font-size: 80%;">Key Idea</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs061.html#mathematics-of-cnns" style="font-size: 80%;">Mathematics of CNNs</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs062.html#convolution-examples-polynomial-multiplication" style="font-size: 80%;">Convolution Examples: Polynomial multiplication</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs063.html#efficient-polynomial-multiplication" style="font-size: 80%;">Efficient Polynomial Multiplication</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs064.html#a-more-efficient-way-of-coding-the-above-convolution" style="font-size: 80%;">A more efficient way of coding the above Convolution</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs065.html#convolution-examples-principle-of-superposition-and-periodic-forces-fourier-transforms" style="font-size: 80%;">Convolution Examples: Principle of Superposition and Periodic Forces (Fourier Transforms)</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs066.html#principle-of-superposition" style="font-size: 80%;">Principle of Superposition</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs067.html#simple-code-example" style="font-size: 80%;">Simple Code Example</a></li>
|
||||
<!-- navigation toc: --> <li><a href="#wrapping-up-fourier-transforms" style="font-size: 80%;">Wrapping up Fourier transforms</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs069.html#finding-the-coefficients" style="font-size: 80%;">Finding the Coefficients</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs070.html#final-words-on-fourier-transforms" style="font-size: 80%;">Final words on Fourier Transforms</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs071.html#two-dimensional-objects" style="font-size: 80%;">Two-dimensional Objects</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs072.html#cross-correlation" style="font-size: 80%;">Cross-Correlation</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs073.html#more-on-dimensionalities" style="font-size: 80%;">More on Dimensionalities</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs074.html#further-dimensionality-remarks" style="font-size: 80%;">Further Dimensionality Remarks</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs075.html#cnns-in-more-detail-building-convolutional-neural-networks-in-tensorflow-and-keras" style="font-size: 80%;">CNNs in more detail, building convolutional neural networks in Tensorflow and Keras</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs076.html#setting-it-up" style="font-size: 80%;">Setting it up</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs077.html#the-mnist-dataset-again" style="font-size: 80%;">The MNIST dataset again</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs078.html#strong-correlations" style="font-size: 80%;">Strong correlations</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs079.html#layers-of-a-cnn" style="font-size: 80%;">Layers of a CNN</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs080.html#systematic-reduction" style="font-size: 80%;">Systematic reduction</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs081.html#prerequisites-collect-and-pre-process-data" style="font-size: 80%;">Prerequisites: Collect and pre-process data</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs082.html#importing-keras-and-tensorflow" style="font-size: 80%;">Importing Keras and Tensorflow</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs083.html#running-with-keras" style="font-size: 80%;">Running with Keras</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs084.html#final-part" style="font-size: 80%;">Final part</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs085.html#final-visualization" style="font-size: 80%;">Final visualization</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs086.html#the-cifar01-data-set" style="font-size: 80%;">The CIFAR01 data set</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs087.html#verifying-the-data-set" style="font-size: 80%;">Verifying the data set</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs088.html#set-up-the-model" style="font-size: 80%;">Set up the model</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs089.html#add-dense-layers-on-top" style="font-size: 80%;">Add Dense layers on top</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs090.html#compile-and-train-the-model" style="font-size: 80%;">Compile and train the model</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week42-bs091.html#finally-evaluate-the-model" style="font-size: 80%;">Finally, evaluate the model</a></li>
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
@@ -404,73 +406,37 @@ MathJax.Hub.Config({
|
||||
<a name="part0068"></a>
|
||||
<!-- !split -->
|
||||
|
||||
<h2 id="finding-the-coefficients" class="anchor">Finding the Coefficients </h2>
|
||||
<h2 id="wrapping-up-fourier-transforms" class="anchor">Wrapping up Fourier transforms </h2>
|
||||
|
||||
<p>
|
||||
Because the forces have been applied for a long time, any non-zero
|
||||
damping eliminates the homogenous parts of the solution, so one need
|
||||
only consider the particular solution for each \( n \).
|
||||
|
||||
<p>
|
||||
The problem is considered solved if one can find expressions for the
|
||||
coefficients \( f_n \) and \( g_n \), even though the solutions are expressed
|
||||
as an infinite sum. The coefficients can be extracted from the
|
||||
function \( F(t) \) by
|
||||
|
||||
$$
|
||||
\begin{eqnarray}
|
||||
\tag{24}
|
||||
f_n&=&\frac{2}{\tau}\int_{-\tau/2}^{\tau/2} dt~F(t)\cos(2n\pi t/\tau),\\
|
||||
\nonumber
|
||||
g_n&=&\frac{2}{\tau}\int_{-\tau/2}^{\tau/2} dt~F(t)\sin(2n\pi t/\tau).
|
||||
\end{eqnarray}
|
||||
$$
|
||||
|
||||
<p>
|
||||
To check the consistency of these expressions and to verify
|
||||
Eq. <a href="#mjx-eqn-24">(24)</a>, one can insert the expansion of \( F(t) \) in
|
||||
Eq. <a href="._week42-bs067.html#mjx-eqn-23">(23)</a> into the expression for the coefficients in
|
||||
Eq. <a href="#mjx-eqn-24">(24)</a> and see whether
|
||||
|
||||
$$
|
||||
\begin{eqnarray}
|
||||
f_n&=?&\frac{2}{\tau}\int_{-\tau/2}^{\tau/2} dt~\left\{
|
||||
\frac{f_0}{2}+\sum_{m>0}f_m\cos(m\omega t)+g_m\sin(m\omega t)
|
||||
\right\}\cos(n\omega t).
|
||||
\end{eqnarray}
|
||||
$$
|
||||
|
||||
<p>
|
||||
Immediately, one can throw away all the terms with \( g_m \) because they
|
||||
convolute an even and an odd function. The term with \( f_0/2 \)
|
||||
disappears because \( \cos(n\omega t) \) is equally positive and negative
|
||||
over the interval and will integrate to zero. For all the terms
|
||||
\( f_m\cos(m\omega t) \) appearing in the sum, one can use angle addition
|
||||
formulas to see that \( \cos(m\omega t)\cos(n\omega
|
||||
t)=(1/2)(\cos[(m+n)\omega t]+\cos[(m-n)\omega t] \). This will integrate
|
||||
to zero unless \( m=n \). In that case the \( m=n \) term gives
|
||||
We can write down the answer for
|
||||
\( x_{pn}(t) \), by substituting \( f_n/m \) or \( g_n/m \) for \( F_0/m \). By
|
||||
writing each factor \( 2n\pi t/\tau \) as \( n\omega t \), with \( \omega\equiv
|
||||
2\pi/\tau \),
|
||||
|
||||
$$
|
||||
\begin{equation}
|
||||
\int_{-\tau/2}^{\tau/2}dt~\cos^2(m\omega t)=\frac{\tau}{2},
|
||||
\tag{25}
|
||||
\tag{23}
|
||||
F(t)=\frac{f_0}{2}+\sum_{n>0}f_n\cos(n\omega t)+g_n\sin(n\omega t).
|
||||
\end{equation}
|
||||
$$
|
||||
|
||||
<p>
|
||||
and
|
||||
The solutions for \( x(t) \) then come from replacing \( \omega \) with
|
||||
\( n\omega \) for each term in the particular solution,
|
||||
|
||||
$$
|
||||
\begin{eqnarray}
|
||||
f_n&=?&\frac{2}{\tau}\int_{-\tau/2}^{\tau/2} dt~f_n/2\\
|
||||
x_p(t)&=&\frac{f_0}{2k}+\sum_{n>0} \alpha_n\cos(n\omega t-\delta_n)+\beta_n\sin(n\omega t-\delta_n),\\
|
||||
\nonumber
|
||||
&=&f_n~\checkmark.
|
||||
\alpha_n&=&\frac{f_n/m}{\sqrt{((n\omega)^2-\omega_0^2)+4\beta^2n^2\omega^2}},\\
|
||||
\nonumber
|
||||
\beta_n&=&\frac{g_n/m}{\sqrt{((n\omega)^2-\omega_0^2)+4\beta^2n^2\omega^2}},\\
|
||||
\nonumber
|
||||
\delta_n&=&\tan^{-1}\left(\frac{2\beta n\omega}{\omega_0^2-n^2\omega^2}\right).
|
||||
\end{eqnarray}
|
||||
$$
|
||||
|
||||
<p>
|
||||
The same method can be used to check for the consistency of \( g_n \).
|
||||
|
||||
<p>
|
||||
<p>
|
||||
<!-- navigation buttons at the bottom of the page -->
|
||||
@@ -497,7 +463,7 @@ The same method can be used to check for the consistency of \( g_n \).
|
||||
<li><a href="._week42-bs076.html">77</a></li>
|
||||
<li><a href="._week42-bs077.html">78</a></li>
|
||||
<li><a href="">...</a></li>
|
||||
<li><a href="._week42-bs090.html">91</a></li>
|
||||
<li><a href="._week42-bs091.html">92</a></li>
|
||||
<li><a href="._week42-bs069.html">»</a></li>
|
||||
</ul>
|
||||
<!-- ------------------- end of main content --------------- -->
|
||||
|
||||
Reference in New Issue
Block a user