A mathematical formula placed in software that performs an analysis on a set of data.