testquark.generators

Undocumented in source.

Members

Functions

inorderDataArray
T[] inorderDataArray(T min, T max, T step)

Generate data in order in [min, max) (in "steps"). Reason: Being nice to the branch predictor (A/B testing).

normalFloats
F[] normalFloats(ulong n, F mu, F sigma)

Generate n numbers distributed N(mu, sigma^2)

uniformArray
T[] uniformArray(ulong n, T a, T b)

Generate an array of n randomly generateds T's in the closed interval [a, b]. Emphasis on random, to avoid compiler optimizations corrupting benchmark results.

Meta