CosmoSim

CosmoSim is a simulator for gravitational lensing.

Source Models

The source model is entirely separate from the lens and simulation models. It implements a single function getImage() which returns the source image as an OpenCV Mat object.

The Source class is the superclass of all source modesls. The constructor takes an integer argument $\sigma$, giving the size which is interpreted somewhat differently for the different subclasses. The subclasses may take additional parameters to the constructor, in addition to the integer size.