Class PerlinNoise

java.lang.Object
squidpony.squidmath.PerlinNoise

public class PerlinNoise
extends Object
Delegates to ClassicNoise methods and always uses the same seed (123456789); that means this produces "Classic Perlin Noise" and not Simplex Noise (both were created by Ken Perlin). ClassicNoise provides more options because it implements Noise.Noise2D and other Noise interfaces; you can use Noise2D and its relatives with classes like Noise.Ridged2D. You could also use FastNoise with FastNoise.PERLIN_FRACTAL as its noiseType, which includes features like adding together multiple octaves or the above ridged noise. This is pretty much here as a bare-bones, basic noise generator.
This formerly produced Simplex noise, which was incredibly confusing; if you want that type of noise you should use SeededNoise. To exactly reproduce the old PerlinNoise methods, you can call return SeededNoise.noise(x * 0.11709966304863834, y * 0.11709966304863834, 123456789) for 2D, return SeededNoise.noise(x * 0.11709966304863834, y * 0.11709966304863834, z * 0.11709966304863834, 123456789) for 3D, or return SeededNoise.noise(x * 0.11709966304863834, y * 0.11709966304863834, z * 0.11709966304863834, w * 0.11709966304863834, 123456789) for 4D. 0.11709966304863834 is just the frequency this uses; it's 1.0 / Math.E / Math.PI, which is meant to hit an integer multiple very rarely.