Source code for runtimepy.noise

"""
A module implementing a structure that simulates a configurable noise source.
"""

# built-in
import random

# internal
from runtimepy.control.source import DoubleSource


[docs] class GaussianSource(DoubleSource): """A simple output-source struct."""
[docs] def source(self, index: int) -> float: """Provide the next value.""" del index return random.gauss()