public RidgedMultifractal (int seed, int octaves, double lacunarity,
double weight, double frequency, Quality quality) {
assert (octaves >= 0);
assert (quality != null);
generator = new Gradient (seed, quality);
this.frequency = frequency;
this.weight = weight;
this.lacunarity = lacunarity;
this.octaves = octaves;
this.weights = generateSpectralWeights (lacunarity, octaves, weight,