/usr/include/openturns/swig/BootstrapExperiment_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 | %feature("docstring") OT::BootstrapExperiment
"Bootstrap experiment.
Available constructors:
BootstrapExperiment(*sample*)
Parameters
----------
sample : 2-d sequence of float
Points to defined a :class:`~openturns.UserDefined` distribution
:math:`\\\\mu`.
Notes
-----
BootstrapExperiment is a random weighted design of experiments.
To call the BootstrapExperiment constructor is equivalent to call the
:class:`~openturns.WeightedExperiment` constructor as follows:
*WeightedExperiment(UserDefined(sample), sample.getSize())*.
See also
--------
WeightedExperiment
Examples
--------
>>> import openturns as ot
>>> ot.RandomGenerator.SetSeed(0)
>>> sample = [[i,i+1] for i in range(5)]
>>> myPlane = ot.BootstrapExperiment(sample)
>>> print(myPlane.generate())
[ marginal 1 marginal 2 ]
0 : [ 4 5 ]
1 : [ 1 2 ]
2 : [ 1 2 ]
3 : [ 1 2 ]
4 : [ 2 3 ]
>>> print(myPlane.getDistribution())
UserDefined({x = [0,1], p = 0.2}, {x = [1,2], p = 0.2}, {x = [2,3], p = 0.2}, {x = [3,4], p = 0.2}, {x = [4,5], p = 0.2})"
|