UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

11 lines (10 loc) 264 B
import { gaussian } from "../../gaussian.js"; /** * Normal Probability Distribution Function * @param {number} x * @param {number} sigma * @return {number} */ export function pdf_normal(x, sigma) { return 0.39894 * gaussian(sigma, x) / sigma; }