agentscape
Version:
Agentscape is a library for creating agent-based simulations. It provides a simple API for defining agents and their behavior, and for defining the environment in which the agents interact. Agentscape is designed to be flexible and extensible, allowing
20 lines (19 loc) • 705 B
TypeScript
import RandomGenerator from './RandomGenerator';
export default class NoiseGenerator {
/**
* Generates noise with a uniform distribution.
*/
static uniform(rng: RandomGenerator, min?: number, max?: number): number;
/**
* Generates noise with a Gaussian distribution.
*/
static gaussian(rng: RandomGenerator, mean?: number, stdDev?: number): number;
/**
* Generates completely random values with no correlation between successive outputs.
*/
static white(rng: RandomGenerator, stdDev?: number): number;
/**
* Generates 2D Simplex noise with output [-1, 1].
*/
static simplex(rng: RandomGenerator): (x: number, y: number) => number;
}