## Software requirements

It is strongly recommended that you use RStudio for this course, with R version $$>=$$ 3.2.3 installed.

For the use of R Notebooks we will need the packagesrmarkdown and knitr. In principle, RStudio should automatically install these when required, but it may be a good idea to do this prior the start of the course, in RStudio, via install.packages("rmarkdown", "knitr"). Later in this course we will also require R packages OpenImageR, arrayhelpers, LPCM, pracma, and GMCM.

Other editors than RStudio (Tinn-R, emacs, etc) can be used if you prefer and if you know how to use them, but they will not supported in the course.

## Resources

The full material for this course includes

• this html document (this is “knitted” R notebook);

• a raw version of this notebook, TutorialCM19.Rmd, which you will use for your practical work;

• a complete version of this notebook with solutions, in Rmd and html format ;

• a Handout (PDF) giving basics of R programming, and details on the methodolology for mixture modelling;

• the Slides (PDF) for the lecture “The EM Algorithm for Finite Gaussian mixtures” (the lecture will be given before we begin with Part II of the morning session).

## Preparation

Please create somewhere on your computer an empty directory with title CM19Tutorial. This will be our working directory.

Download the file TutorialCM19.Rmd (use the right mouse button), and place it in the directory that you have just created. Then open it in RStudio, by double-clicking on that file. If you had already opened this file without having created the directory, please close it again, create the directory, place this file in there, and open the file as described.

We will use this .Rmd file to work through the tasks and examples in this tutorial.