readme: add exercise 6

This commit is contained in:
Michele Guerini Rocco 2020-04-27 22:23:13 +00:00
parent 365b239701
commit ca873622c0

View File

@ -3,13 +3,13 @@
## Description ## 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 - `lectures`: a summary of the lectures of the course
- `notes`: an explanation of the solutions of the exercises - `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 ## 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 Note: the histogram parameters affect the computation of the χ² and the
relative parameter estimation. 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.