UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

13 lines 851 B
/** * Generalized bell function, also known as "Cauchy membership function" * @see "dbellmf" function from Matlab * @see https://codecrucks.com/what-is-fuzzy-membership-function-complete-guide/ * @see https://researchhubs.com/post/maths/fundamentals/bell-shaped-function.html * @param {number} v value to be filtered (have membership adjustment applied to) * @param {number} a Controls window, larger value = larger window. Function will return exactly 0.5 at this distance away from center * @param {number} b Slope, larger slope makes function's tails sharper, meaning that values fall off faster away from center * @param {number} c Controls center of the bell curve * @returns {number} */ export function bell_membership_function(v: number, a: number, b: number, c: number): number; //# sourceMappingURL=bell_membership_function.d.ts.map