// @flow

const normal = (mean: number, stddev: number) => (x: number) =>
  1 /
  (Math.sqrt(2 * Math.PI) * stddev) *
  Math.exp(-Math.pow(x - mean, 2) / (2 * Math.pow(stddev, 2)));

export { normal };
