LaundrySorcery

IP-Enabling a 2011 Washing Machine
git clone git://xatko.vsos.ethz.ch/LaundrySorcery.git
Log | Files | Refs

commit 3aa4263418a87b53fed1052a8fd592e735b9dbe0
parent 7b8c169cf45acb598f0395be0cd4540fe7858a75
Author: Dominik Schmidt <das1993@hotmail.com>
Date:   Wed,  4 Jul 2018 12:26:38 +0000

Add an example of clustering into the documentation.

Diffstat:
doc/Documentation.tex | 8++++++++
doc/Graph/Clusters/Clusters.gnuplot | 3+++
doc/Graph/Clusters/cluster.txt | 35+++++++++++++++++++++++++++++++++++
doc/Makefile | 4++--
4 files changed, 48 insertions(+), 2 deletions(-)

diff --git a/doc/Documentation.tex b/doc/Documentation.tex @@ -156,6 +156,14 @@ \max_{i} \sigma_i &< \tau_{abs}\\ \max_{i} \frac{\sigma_i}{\mu_i} &< \tau_{rel} \end{align} + + A run of this algorithm results, as an example, in the following clusters: + + \begin{figure}[H] + \centering + \includegraphics[max width=0.75\linewidth]{Graph/Clusters/Clusters.pdf} + \caption{Clusters of the Washing Machine} + \end{figure} \subsection{Guessing the Remaining Time} We now have clusters of gaussians, and want to know: How long is a washing going to take? diff --git a/doc/Graph/Clusters/Clusters.gnuplot b/doc/Graph/Clusters/Clusters.gnuplot @@ -0,0 +1,3 @@ +set xlabel "Cluster-ID" +set ylabel "Dauer [h]" +plot "cluster.txt" using 1:($2/60) t "" diff --git a/doc/Graph/Clusters/cluster.txt b/doc/Graph/Clusters/cluster.txt @@ -0,0 +1,35 @@ +0 819 +0 1001 +0 1012 +1 1988 +1 1964 +1 2039 +1 1896 +1 1911 +1 1933 +1 1887 +1 1921 +1 1896 +2 3541 +3 4549 +3 4927 +4 6176 +4 5518 +4 6073 +4 6158 +4 5712 +5 6712 +5 6751 +5 6596 +5 6662 +5 6446 +5 7205 +5 6517 +5 6491 +5 6445 +6 9300 +7 10332 +7 10635 +7 10245 +7 10672 +8 14612 diff --git a/doc/Makefile b/doc/Makefile @@ -1,6 +1,6 @@ DPI=96 -Documentation.pdf: Documentation.tex Graph/simulation.pdf Graph/Cut_Gaussians/Cut_Gaussian.pdf Graph/distribution.pdf +Documentation.pdf: Documentation.tex Graph/simulation.pdf Graph/Cut_Gaussians/Cut_Gaussian.pdf Graph/distribution.pdf Graph/Clusters/Clusters.pdf lualatex $< Graph/simulation.csv: Graph/simulator.m @@ -9,7 +9,7 @@ Graph/simulation.csv: Graph/simulator.m Graph/simulation.pdf: Graph/simulation.gnuplot Graph/simulation.csv %.pdf: %.gnuplot - gnuplot -e "set terminal \"pdfcairo\" enhanced; set output \"$@\"" $< + cd $(<D);gnuplot -e "set terminal \"pdfcairo\" enhanced; set output \"$(@F)\"" $(<F) %.pdf: %.tex pdflatex $<