Skip to content

Commit

Permalink
evaluation decribed
Browse files Browse the repository at this point in the history
  • Loading branch information
johaq committed Oct 6, 2015
1 parent 9e4998a commit 47f116a
Show file tree
Hide file tree
Showing 7 changed files with 739 additions and 17 deletions.
36 changes: 36 additions & 0 deletions Matlab/dataSetsViz.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
close all
hFig = figure(1);
set(hFig, 'Position', [100 100 1000 300])

x = [-3:.1:3];
norm = normpdf(x,0,1);

rndDeviation = 1;
rndMean = 0;
noPoints = 40;
rndSample = rndDeviation.*randn(noPoints,1) + rndMean;
rndSample = sort(rndSample);
rndLabels = sign(rndSample);
rndInitLabels = rndLabels;

noFalseFields = 5; % number of distributions used to insert possible true rejects


for i = 1:noFalseFields
rndMeanFalse = round(((noPoints/2)*rand)+(noPoints/4)); % random number in the intervall of 0 to 1000
rndDeviationFalse = 2; % flip label of this amount of points around the mean
noFalsePoints = 5;
rndSampleFalse = unique(round(rndDeviationFalse.*randn(noFalsePoints,1) + rndMeanFalse));
for j = 1:size(rndSampleFalse)
rndLabels(rndSampleFalse(j)) = rndLabels(rndSampleFalse(j)) * -1; % flip labels
end
end

rndLabels(rndLabels == 1) = 2;
rndLabels(rndLabels == -1) = 1;

hold on
scatter(rndSample(rndLabels == 2),zeros(length(rndSample(rndLabels == 2)),1),50,'ko');
scatter(rndSample(rndLabels == 1),zeros(length(rndSample(rndLabels == 1)),1),50,'ko','filled');
plot(x,norm);
hold off
62 changes: 45 additions & 17 deletions Thesis_Tex/content/chapter-reject-options.tex

Large diffs are not rendered by default.

Binary file modified Thesis_Tex/thesis.pdf
Binary file not shown.
6 changes: 6 additions & 0 deletions Thesis_Tex/thesis.tex
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@
\usepackage{amssymb}
\usepackage{amsmath,bm,svg,cases,algorithm2e}

\usepackage{pgfplots}
\pgfmathdeclarefunction{gauss}{2}{%
\pgfmathparse{1/(#2*sqrt(2*pi))*exp(-((x-#1)^2)/(2*#2^2))}%
}


\setsvg{inkscape={"/usr/bin/inkscape"}}

\usepackage{tikz}
Expand Down
Binary file added graphics/rndDataSet.pdf
Binary file not shown.
66 changes: 66 additions & 0 deletions graphics/rndDataSet.pdf_tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
%% Creator: Inkscape inkscape 0.48.4, www.inkscape.org
%% PDF/EPS/PS + LaTeX output extension by Johan Engelen, 2010
%% Accompanies image file 'rndDataSet.pdf' (pdf, eps, ps)
%%
%% To include the image in your LaTeX document, write
%% \input{<filename>.pdf_tex}
%% instead of
%% \includegraphics{<filename>.pdf}
%% To scale the image, write
%% \def\svgwidth{<desired width>}
%% \input{<filename>.pdf_tex}
%% instead of
%% \includegraphics[width=<desired width>]{<filename>.pdf}
%%
%% Images with a different path to the parent latex file can
%% be accessed with the `import' package (which may need to be
%% installed) using
%% \usepackage{import}
%% in the preamble, and then including the image with
%% \import{<path to file>}{<filename>.pdf_tex}
%% Alternatively, one can specify
%% \graphicspath{{<path to file>/}}
%%
%% For more information, please see info/svg-inkscape on CTAN:
%% http://tug.ctan.org/tex-archive/info/svg-inkscape
%%
\begingroup%
\makeatletter%
\providecommand\color[2][]{%
\errmessage{(Inkscape) Color is used for the text in Inkscape, but the package 'color.sty' is not loaded}%
\renewcommand\color[2][]{}%
}%
\providecommand\transparent[1]{%
\errmessage{(Inkscape) Transparency is used (non-zero) for the text in Inkscape, but the package 'transparent.sty' is not loaded}%
\renewcommand\transparent[1]{}%
}%
\providecommand\rotatebox[2]{#2}%
\ifx\svgwidth\undefined%
\setlength{\unitlength}{642.56508789bp}%
\ifx\svgscale\undefined%
\relax%
\else%
\setlength{\unitlength}{\unitlength * \real{\svgscale}}%
\fi%
\else%
\setlength{\unitlength}{\svgwidth}%
\fi%
\global\let\svgwidth\undefined%
\global\let\svgscale\undefined%
\makeatother%
\begin{picture}(1,0.33449166)%
\put(0,0){\includegraphics[width=\unitlength]{rndDataSet.pdf}}%
\put(0.02362577,0.0002292){\makebox(0,0)[lb]{\smash{-3}}}%
\put(0.18443961,0.0002292){\makebox(0,0)[lb]{\smash{-2}}}%
\put(0.34525333,0.0002292){\makebox(0,0)[lb]{\smash{-1}}}%
\put(0.50855719,0.0002292){\makebox(0,0)[lb]{\smash{0}}}%
\put(0.66937103,0.0002292){\makebox(0,0)[lb]{\smash{1}}}%
\put(0.83018475,0.0002292){\makebox(0,0)[lb]{\smash{2}}}%
\put(0.99099859,0.0002292){\makebox(0,0)[lb]{\smash{3}}}%
\put(0.01387323,0.0174518){\makebox(0,0)[lb]{\smash{0}}}%
\put(-0.00106689,0.09370866){\makebox(0,0)[lb]{\smash{0.1}}}%
\put(-0.00106689,0.16996553){\makebox(0,0)[lb]{\smash{0.2}}}%
\put(-0.00106689,0.2462224){\makebox(0,0)[lb]{\smash{0.3}}}%
\put(-0.00106689,0.32247926){\makebox(0,0)[lb]{\smash{0.4}}}%
\end{picture}%
\endgroup%
Loading

0 comments on commit 47f116a

Please sign in to comment.