From ca873622c0d6bd7a0dbeea33f9fd342f4ff1c049 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Mon, 27 Apr 2020 22:23:13 +0000 Subject: [PATCH] readme: add exercise 6 --- README.md | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ce0f849..63aadca 100644 --- a/README.md +++ b/README.md @@ -3,13 +3,13 @@ ## Description -This repository contains the source code of two documents +This repository is structured as follows: - `lectures`: a summary of the lectures of the course - `notes`: an explanation of the solutions of the exercises -and the programs written for each exercise (`ex-n` directories) +* `ex-n`: programs written for each exercise ## Building the documents @@ -113,3 +113,21 @@ and number of events, run it with `-h` to see their usage. Note: the histogram parameters affect the computation of the χ² and the relative parameter estimation. + + +### Exercise 6 + +`ex-6/bin/main` simulates a Fraunhöfer diffraction experiment. The program +prints to `stdout` the bin counts of the intensity as a function of the +diffraction angle. To plot a histogram simply pipe the output to the +program `ex-6/plot.py`. + +The program convolves the original signal with a gaussian kernel (`-s` to +change the σ), optionally adds a Poisson noise (`-m` to change the mean μ) and +performs either a naive deconvolution by a FFT (`-m fft` mode) or applying the +Richard-Lucy deconvolution algorithm (`-m rl` mode), which is expected to +perform optimally in this case. + +The `-c` and `-d` options controls whether the convolved or deconvolved +histogram counts should be printed to `stdout`. For more options +run the program with `-h` to see the usage screen.