Create a white noise processΒΆ

In this basic example we are going to build a white noise process by its distribution.

In [19]:
from __future__ import print_function
import openturns as ot
import math as m
In [20]:
# Define the distribution
myDist = ot.Normal()
In [21]:
# Define the mesh
myMesh = ot.IntervalMesher([10]).build(ot.Interval([0.0], [1.0]))
In [22]:
# Create the process:
process = ot.WhiteNoise(myDist, myMesh)
print(process)
WhiteNoise(Normal(mu = 0, sigma = 1))
In [23]:
# Draw a sample
sample = process.getSample(6)
sample.drawMarginal(0)
Out[23]:
../../_images/examples_probabilistic_modeling_white_noise_process_6_0.svg