/usr/include/openturns/swig/FixedExperiment_doc.i is in libopenturns-dev 1.7-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | %feature("docstring") OT::FixedExperiment
"Fixed experiment.
Available constructors:
FixedExperiment(*aSample*)
FixedExperiment(*aSample, weights*)
Parameters
----------
aSample : 2-d sequence of float
Sample that already exists.
weights : sequence of float
Weights of each point of *aSample*.
Notes
-----
FixedExperiment is a deterministic weighted design of experiments.
It enables to take into account a random sample which has been obtained outside
the OpenTURNS study or at another step of the OpenTURNS study. The
:meth:`generate` method always gives the same sample, *aSample*, if it is
recalled. When not specified, the weights associated to the points are all
equal to :math:`1/cardI`. Then the sample *aSample* is considered as generated
from the limit distribution
:math:`\\\\lim\\\\limits_{cardI \\\\to \\\\infty} \\\\sum_{i \\\\in I} \\\\omega_i \\\\delta_{\\\\vect{X}_i}=\\\\mu`.
The :meth:`setDistribution` method has no side effect, as the distribution is
fixed by the initial sample.
See also
--------
WeightedExperiment
Examples
--------
>>> import openturns as ot
>>> ot.RandomGenerator.SetSeed(0)
>>> sample = [[i,i+1] for i in range(5)]
>>> myPlane = ot.FixedExperiment(sample)
>>> print(myPlane.generate())
0 : [ 0 1 ]
1 : [ 1 2 ]
2 : [ 2 3 ]
3 : [ 3 4 ]
4 : [ 4 5 ]"
|