/usr/include/openturns/swig/DatabaseFunction_doc.i is in libopenturns-dev 1.9-5.
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 | %feature("docstring") OT::DatabaseFunction
"Pre-evaluated function.
Available constructor:
DatabaseFunction(*inputSample, outputSample*)
DatabaseFunction(*inputSample, outputSample, enableCache*)
Allows to build a function takes a value in the output sample when presented
the corresponding point in the input sample .
Parameters
----------
inputSample : 2-d sequence of float
Values of the inputs.
outputSample : 2-d sequence of float
Values of the outputs.
enableCache : bool, optional
Whether to enable the cache, defaults to True
It can take a significant amount of time for large samples.
Examples
--------
>>> import openturns as ot
>>> inputSample = [[1.0, 1.0], [2.0, 2.0]]
>>> outputSample = [[4.0], [5.0]]
>>> database = ot.DatabaseFunction(inputSample, outputSample)
>>> x = [1.8] * database.getInputDimension()
>>> print(database(x))
[5]"
|