NLA-lib Explorer

NLAlib.jlDim

Library · def

The Johnson–Lindenstrauss dimension <!-- value jlDim \varepsilon \delta --> \log(2/\delta)/(\varepsilon^2/4 - \varepsilon^3/6): a Gaussian or Haar sketch with at least this many rows has the distributional JL property with distortion \varepsilon and failure probability \delta, for 0 < \varepsilon < 3/2 (NLAlib.hasJLProperty_of_hasLaw_gaussianMatrix_of_jlDim_le). The value the proof reaches, from Dasgupta and Gupta's exponent. Consumers use jlDim_le, 12 \log(2/\delta) / \varepsilon^2 for \varepsilon \le 1. Junk values: for \varepsilon \ge 3/2 the denominator is at most 0, and the value is 0 at \varepsilon = 3/2 and of the sign of -\log(2/\delta) beyond; for \delta \ge 2 the logarithm is at most 0.

NLAlib.jlDim (ε δ : ℝ) : ℝ

Full source on GitHub

Import NLAlib.Sketching.Gaussian.Gaussian.