Package com.github.tommyettinger.digital
package com.github.tommyettinger.digital
-
ClassesClassDescriptionA drop-in replacement for
Random
that adds no new APIs, but is faster, has better statistical quality, and has a guaranteed longer minimum period (also called cycle length).Static methods for various frequently-used operations on 1D and 2D arrays.Provides ways to encode digits in different base systems, or radixes, and decode numbers written in those bases.Methods for converting floats to and from ints, as well as doubles to and from longs and ints.64-bit and 32-bit hashing functions that we can rely on staying the same cross-platform.Mathematical operations not provided byjava.lang.Math
.Various trigonometric approximations, using a lookup table for sin() and cos(), a non-tabular approximation for sinSmooth() and cosSmooth(), a Padé approximant for tan(), and Taylor series for the inverses of sin(), cos(), and tan().