Kalman-and-Bayesian-Filters.../experiements/noise.py
2015-01-27 15:46:34 -08:00

13 lines
236 B
Python

# -*- coding: utf-8 -*-
"""
Created on Fri May 2 10:28:27 2014
@author: rlabbe
"""
import numpy.random
def white_noise (sigma2=1.):
return sigma2 * numpy.random.randn()
if __name__ == "__main__":
assert white_noise(.0) == 0.