1%feature("docstring") OT::Composite
2"Composite design of experiments.
3
4Available constructor:
5    Composite(*center, levels*)
6
7    Composite(*dimension, levels*)
8
9Parameters
10----------
11center : sequence of float
12    Center of the design of experiments. If not specified, the design of
13    experiments is centered on :math:`\vect{0} \in \Rset^n`.
14levels : sequence of float of dimension :math:`n_{level}`
15    The discretisation of directions (the same for each one), without any
16    consideration of unit.
17dimension : positive int
18    Dimension :math:`n` of the space where the design of experiments is created.
19
20Notes
21-----
22Composite is a stratified design of experiments enabling to create a pattern
23as the union of an :class:`~openturns.Axial` pattern and a
24:class:`~openturns.Factorial` one. The number of points generated is
25:math:`1 + n_{level}(2n+2^n)`.
26
27In order to scale each direction and translate the grid structure onto the
28proper center, use the operator :math:`*=` and :math:`+=` of
29:class:`~openturns.Sample`.
30
31See also
32--------
33StratifiedExperiment
34
35Examples
36--------
37>>> import openturns as ot
38>>> levels = [4.0, 2.0, 7.0]
39>>> myCenteredReductedGrid = ot.Composite(2, levels)
40>>> mySample = myCenteredReductedGrid.generate()
41>>> # Translate the grid
42>>> mySample+=4
43>>> # Scale each direction
44>>> mySample*=2"
45