random fixes and notes

This commit is contained in:
Jan Benda 2020-12-13 09:43:44 +01:00
parent b76b2d35cc
commit 68784b0e23
10 changed files with 30 additions and 28 deletions

View File

@ -3,7 +3,7 @@ BASENAME=scientificcomputing-script
SUBDIRS=programming debugging plotting codestyle statistics bootstrap regression likelihood pointprocesses designpattern SUBDIRS=programming debugging plotting codestyle statistics bootstrap regression likelihood pointprocesses designpattern
SUBTEXS=$(foreach subd, $(SUBDIRS), $(subd)/lecture/$(subd).tex) SUBTEXS=$(foreach subd, $(SUBDIRS), $(subd)/lecture/$(subd).tex)
all : script chapters all : plots chapters index script
chapters : chapters :
for sd in $(SUBDIRS); do $(MAKE) -C $$sd/lecture chapter; done for sd in $(SUBDIRS); do $(MAKE) -C $$sd/lecture chapter; done

View File

@ -10,6 +10,8 @@ pythonplots : $(PYPDFFILES)
$(PYPDFFILES) : %.pdf: %.py ../../plotstyle.py $(PYPDFFILES) : %.pdf: %.py ../../plotstyle.py
PYTHONPATH="../../" python3 $< PYTHONPATH="../../" python3 $<
#ps2pdf $@ $(@:.pdf=-temp.pdf) # strip fonts, saves only about 1.5MB
#mv $(@:.pdf=-temp.pdf) $@
cleanpythonplots : cleanpythonplots :
rm -f $(PYPDFFILES) rm -f $(PYPDFFILES)

View File

@ -4,6 +4,7 @@
more months might as well have been written by someone more months might as well have been written by someone
else.}{Eagleson's law} else.}{Eagleson's law}
\noindent
Cultivating a good code style is not just a matter of good taste but Cultivating a good code style is not just a matter of good taste but
rather is a key ingredient for readability and maintainability of code rather is a key ingredient for readability and maintainability of code
and, in the end, facilitates reproducibility of scientific and, in the end, facilitates reproducibility of scientific

View File

@ -319,7 +319,7 @@
% %
\newboolean{showexercisesolutions} \newboolean{showexercisesolutions}
\setboolean{showexercisesolutions}{true} \setboolean{showexercisesolutions}{true}
\newcommand{\exercisesolutions}{chapter} % 0: here, 1: chapter, 2: end \newcommand{\exercisesolutions}{end} % 0: here, 1: chapter, 2: end
% we need this also as numbers: % we need this also as numbers:
\ifthenelse{\equal{\exercisesolutions}{end}}{\newcommand{\exercisesolutionsnum}{2}}{% \ifthenelse{\equal{\exercisesolutions}{end}}{\newcommand{\exercisesolutionsnum}{2}}{%
\ifthenelse{\equal{\exercisesolutions}{chapter}}{\newcommand{\exercisesolutionsnum}{1}}{% \ifthenelse{\equal{\exercisesolutions}{chapter}}{\newcommand{\exercisesolutionsnum}{1}}{%

View File

@ -74,20 +74,20 @@ the data was changed or the same kind of plot has to be created for a
number of datasets. number of datasets.
\begin{important}[Why manual editing should be avoided.] \begin{important}[Why manual editing should be avoided.]
On first glance the manual editing of a figure using tools such as On first glance manual editing of a figure using tools such as
Corel draw, Illustrator, etc.\,appears much more convenient and less inkscape, Corel draw, Illustrator, etc.\,appears much more
complex than coding everything into the analysis scripts. This, convenient and less complex than coding everything into the analysis
however, is not entirely true. What if the figure has to be re-drawn scripts. This, however, is not entirely true. What if the figure has
or updated? Then the editing work starts all over again. Rather, to be re-drawn or updated, because, for example, you got more data?
there is a great risk associated with the manual editing Then the editing work starts all over again. In addition, there is a
approach. Axes may be shifted, fonts have not been embedded into the great risk associated with the manual editing approach. Axes may be
final document, annotations have been copy pasted between figures shifted, fonts have not been embedded into the final document,
and are not valid. All of these mistakes can be found in annotations have been copy-pasted between figures and are not
publications and then require an erratum, which is not valid. All of these mistakes can be found in publications and then
desirable. Even if it appears more cumbersome in the beginning one require an erratum, which is not desirable. Even if it appears more
should always try to create publication-ready figures directly from cumbersome in the beginning, one should always try to generate
the data analysis tool using scripts or functions to properly layout publication-ready figures directly from the data analysis tool using
the plot. scripts or functions to properly layout and annotate the plot.
\end{important} \end{important}
\subsection{Simple plotting} \subsection{Simple plotting}

View File

@ -1,7 +1,7 @@
%!PS-Adobe-2.0 EPSF-2.0 %!PS-Adobe-2.0 EPSF-2.0
%%Title: pointprocessscetchA.tex %%Title: pointprocessscetchA.tex
%%Creator: gnuplot 4.6 patchlevel 4 %%Creator: gnuplot 4.6 patchlevel 4
%%CreationDate: Fri Dec 11 21:08:22 2020 %%CreationDate: Sun Dec 13 09:18:35 2020
%%DocumentFonts: %%DocumentFonts:
%%BoundingBox: 50 50 373 135 %%BoundingBox: 50 50 373 135
%%EndComments %%EndComments
@ -433,7 +433,7 @@ SDict begin [
/Author (jan) /Author (jan)
% /Producer (gnuplot) % /Producer (gnuplot)
% /Keywords () % /Keywords ()
/CreationDate (Fri Dec 11 21:08:22 2020) /CreationDate (Sun Dec 13 09:18:35 2020)
/DOCINFO pdfmark /DOCINFO pdfmark
end end
} ifelse } ifelse

View File

@ -1,7 +1,7 @@
%!PS-Adobe-2.0 EPSF-2.0 %!PS-Adobe-2.0 EPSF-2.0
%%Title: pointprocessscetchB.tex %%Title: pointprocessscetchB.tex
%%Creator: gnuplot 4.6 patchlevel 4 %%Creator: gnuplot 4.6 patchlevel 4
%%CreationDate: Fri Dec 11 21:08:22 2020 %%CreationDate: Sun Dec 13 09:18:35 2020
%%DocumentFonts: %%DocumentFonts:
%%BoundingBox: 50 50 373 237 %%BoundingBox: 50 50 373 237
%%EndComments %%EndComments
@ -433,7 +433,7 @@ SDict begin [
/Author (jan) /Author (jan)
% /Producer (gnuplot) % /Producer (gnuplot)
% /Keywords () % /Keywords ()
/CreationDate (Fri Dec 11 21:08:22 2020) /CreationDate (Sun Dec 13 09:18:35 2020)
/DOCINFO pdfmark /DOCINFO pdfmark
end end
} ifelse } ifelse

View File

@ -71,19 +71,18 @@
\includechapter{regression} \includechapter{regression}
\includechapter{likelihood}
% add chapter on generalized linear models (versus ANOVA) % add chapter on generalized linear models (versus ANOVA)
% add chapter on nonlinear fitting (methods, initial values, local minima) % add chapter on nonlinear fitting (methods, initial values, local minima, power law fits on log-log data)
\includechapter{likelihood}
\includechapter{pointprocesses} \includechapter{pointprocesses}
% add chapter on time series (amplitude distribution, autocorrelation, crosscorrelation) % add chapter on time series (amplitude distribution, autocorrelation, crosscorrelation)
%\includechapter{spectral} %\includechapter{spectral}
% add chapter on digital filtering % add chapter on filtering and envelopes
% add chapter on event detection, signal detection, ROC % add chapter on event detection, signal detection, ROC
@ -97,11 +96,11 @@
%\part{Tools} %\part{Tools}
% Latex % Latex
% markdown % markdown, html
% Makefile % Makefile
% version control (git and github) only put source files into repository! % version control (git and github) only put source files into repository!
% distributed computing (ssh and grid engines) % distributed computing (ssh and grid engines)
% data handling (structure, data bases, storage (rsync), backup) % data handling (structure, storage (rsync), backup, data bases)
% data annotation, meta data % data annotation, meta data
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@ -111,7 +110,7 @@
%\chapter{Cheat-Sheet} %\chapter{Cheat-Sheet}
%%%% solutions: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%% solutions: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% \printallsolutions \printallsolutions
%%%% indices: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%% indices: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%