Create a low discrepancy sequence

In this basic example we are going to create a Sobol’ sequence.

In [13]:
from __future__ import print_function
import openturns as ot
In [14]:
# Create the sequence
dimension = 2
sequence = ot.SobolSequence(dimension)
In [15]:
# Draw a sample
sample = sequence.generate(1000)
graph = ot.Graph('Sobol\' sequence', 'x1', 'x2', True, '')
cloud = ot.Cloud(sample)
graph.add(cloud)
graph
Out[15]:
../../_images/examples_uncertainty_quantification_low_discrepancy_sequence_4_0.svg