Create a low discrepancy sequence¶
In this basic example we are going to create a Sobol’ sequence.
from __future__ import print_function import openturns as ot
# Create the sequence dimension = 2 sequence = ot.SobolSequence(dimension)
# Draw a sample sample = sequence.generate(1000) graph = ot.Graph('Sobol\' sequence', 'x1', 'x2', True, '') cloud = ot.Cloud(sample) graph.add(cloud) graph