# Models¶

These classes provide model functions and also set up grid over the parameters spaces of the models and provide log(prior) values for those parameter spaces.

A generic model class is provided that can set up model parameters, parameter ranges, and filtering functions. This class is inherited by all the other models, which provide model functions and priors.

## The Flare Model¶

This class provides a flare model in which the flare light curve has a Gaussian rise and an exponential decay as given by

where \(\tau_g\) is the width of the Gaussian rise, \(\tau_e\) is the time constant of the exponential decay, \(T_0\) is the time of the flare peak, and \(A_0\) is the peak amplitude.

In this class the parameter space grid and prior is set up such that \(\tau_e > \tau_g\).

## The Transit Model¶

This class provides a generic transit model. It is not the fully physical model of [1], but is instead a simple model with Gaussian wings and a flat trough.

The parameter space grid and prior is set up such that the total length on the transit does not exceed a given value.

## General models¶

These classes provide models for a range of generic signal types. These can be used either as signal or noise models when forming an odds ratio.

### Exponential decay/rise¶

A class giving a model with exponential decay or rise.

### Impulse¶

A class giving a model with a delta-function-like (single bin) impulse.

### Gaussian¶

A class giving a model with a Gaussian profile.

### Step¶

A class giving a step function profile.

## References¶

[1] | Mandel and Agol, Ap. J. Lett., 580 (2002), arXiv:astro-ph/0210099. |