Package voltage.sources

# Class NoiseSource

java.lang.Object
voltage.sources.NoiseSource

public class NoiseSource extends Object
Random noise class for white and pink noise. A NoiseSource return values from -5.0 to 5.0

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `NoiseSource()`
  Constructs a NoiseSource object.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `double`
  `GetPinkNoise()`
  Get a pink noise sample.
  `double`
  `GetWhiteNoise()`
  Get a white noise sample.

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### NoiseSource

    public NoiseSource()
    Constructs a NoiseSource object.

- ## Method Details

  - ### GetWhiteNoise

    public double GetWhiteNoise()
    Get a white noise sample. This is the typical hiss you hear when tuning a radio.
    Returns:
      a value from -5.0 to 5.0

  - ### GetPinkNoise

    public double GetPinkNoise()
    Get a pink noise sample. Pink noise is like white noise but with reduced higher frequencies.
    Returns:
      a value from -5.0 to 5.0