Class GaussianWhiteNoiseGenerator.GaussianWhiteNoiseBuilder
java.lang.Object
de.articdive.jnoise.generators.noisegen.random.gaussian.GaussianWhiteNoiseGenerator.GaussianWhiteNoiseBuilder
- All Implemented Interfaces:
NoiseSourceBuilder
- Enclosing class:
- GaussianWhiteNoiseGenerator
@NullMarked
public static final class GaussianWhiteNoiseGenerator.GaussianWhiteNoiseBuilder
extends Object
implements NoiseSourceBuilder
Builder for the
GaussianWhiteNoiseGenerator
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the NoiseSource.setMean
(double mean) Sets the mean for the gaussian distribution in theGaussianWhiteNoiseGenerator
setSeed
(long seed) Sets the seed for theGaussianWhiteNoiseGenerator
.setStandardDeviation
(double stddev) Sets the standard deviation for the gaussian distribution in theGaussianWhiteNoiseGenerator
-
Method Details
-
setSeed
Sets the seed for theGaussianWhiteNoiseGenerator
.- Parameters:
seed
- the new seed for theGaussianWhiteNoiseGenerator
.- Returns:
GaussianWhiteNoiseGenerator.GaussianWhiteNoiseBuilder
this
-
setMean
Sets the mean for the gaussian distribution in theGaussianWhiteNoiseGenerator
- Parameters:
mean
- the new mean for theGaussianWhiteNoiseGenerator
- Returns:
GaussianWhiteNoiseGenerator.GaussianWhiteNoiseBuilder
this
-
setStandardDeviation
Sets the standard deviation for the gaussian distribution in theGaussianWhiteNoiseGenerator
- Parameters:
stddev
- the new standard deviation for theGaussianWhiteNoiseGenerator
- Returns:
GaussianWhiteNoiseGenerator.GaussianWhiteNoiseBuilder
this
-
build
Description copied from interface:NoiseSourceBuilder
Builds the NoiseSource.- Specified by:
build
in interfaceNoiseSourceBuilder
- Returns:
NoiseSource
resulting from the parameters of theNoiseSourceBuilder
.
-