UNPKG

@thi.ng/vectors

Version:

Optimized 2d/3d/4d and arbitrary length vector operations, support for memory mapping/layouts

29 lines 1.18 kB
import type { MultiVecOpFNO, VecOpFNO } from "./api.js"; /** * Sets `v` to random vector, with each component drawn from given random * distribution function (default: gaussian/normal distribution) and scaled to * `n` (default: 1). Creates new vector if `v` is null. * * @remarks * The non-fixed sized version of this function can ONLY be used if `v` is given * and initialized to the desired size/length. * * References: * * - https://docs.thi.ng/umbrella/random/#random-distributions * - https://docs.thi.ng/umbrella/random/functions/normal.html * * @param v - * @param rnd - * @param n - default 1 */ export declare const randDistrib: MultiVecOpFNO, randDistrib2: VecOpFNO, randDistrib3: VecOpFNO, randDistrib4: VecOpFNO; /** @deprecated renamed to {@link randDistrib} */ export declare const randomDistrib: MultiVecOpFNO; /** @deprecated renamed to {@link randDistrib2} */ export declare const randomDistrib2: VecOpFNO; /** @deprecated renamed to {@link randDistrib3} */ export declare const randomDistrib3: VecOpFNO; /** @deprecated renamed to {@link randDistrib4} */ export declare const randomDistrib4: VecOpFNO; //# sourceMappingURL=rand-distrib.d.ts.map