28 "Class hierarchy: :class:`freestyle.types.UnaryFunction1D` > "
29 ":class:`freestyle.types.UnaryFunction1DDouble` > :class:`DensityF1D`\n"
31 ".. method:: __init__(sigma=2.0, integration_type=IntegrationType.MEAN, sampling=2.0)\n"
33 " Builds a DensityF1D object.\n"
35 " :arg sigma: The sigma used in DensityF0D and determining the window size\n"
36 " used in each density query.\n"
37 " :type sigma: float\n"
38 " :arg integration_type: The integration method used to compute a single value\n"
39 " from a set of values.\n"
40 " :type integration_type: :class:`freestyle.types.IntegrationType`\n"
41 " :arg sampling: The resolution used to sample the chain: the\n"
42 " corresponding 0D function is evaluated at each sample point and\n"
43 " the result is obtained by combining the resulting values into a\n"
44 " single one, following the method specified by integration_type.\n"
45 " :type sampling: float\n"
47 ".. method:: __call__(inter)\n"
49 " Returns the density evaluated for an Interface1D. The density is\n"
50 " evaluated for a set of points along the Interface1D (using the\n"
51 " :class:`freestyle.functions.DensityF0D` functor) with a user-defined\n"
52 " sampling and then integrated into a single value using a user-defined\n"
53 " integration method.\n"
55 " :arg inter: An Interface1D object.\n"
56 " :type inter: :class:`freestyle.types.Interface1D`\n"
57 " :return: The density evaluated for an Interface1D.\n"
62 static const char *kwlist[] = {
"sigma",
"integration_type",
"sampling",
nullptr};
63 PyObject *obj =
nullptr;
67 if (!PyArg_ParseTupleAndKeywords(
80 PyVarObject_HEAD_INIT(
nullptr, 0)
99 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
Functions taking 1D input.
IntegrationType IntegrationType_from_BPy_IntegrationType(PyObject *obj)
static int DensityF1D___init__(BPy_DensityF1D *self, PyObject *args, PyObject *kwds)
PyDoc_STRVAR(DensityF1D___doc__, "Class hierarchy: :class:`freestyle.types.UnaryFunction1D` > " ":class:`freestyle.types.UnaryFunction1DDouble` > :class:`DensityF1D`\n" "\n" ".. method:: __init__(sigma=2.0, integration_type=IntegrationType.MEAN, sampling=2.0)\n" "\n" " Builds a DensityF1D object.\n" "\n" " :arg sigma: The sigma used in DensityF0D and determining the window size\n" " used in each density query.\n" " :type sigma: float\n" " :arg integration_type: The integration method used to compute a single value\n" " from a set of values.\n" " :type integration_type: :class:`freestyle.types.IntegrationType`\n" " :arg sampling: The resolution used to sample the chain: the\n" " corresponding 0D function is evaluated at each sample point and\n" " the result is obtained by combining the resulting values into a\n" " single one, following the method specified by integration_type.\n" " :type sampling: float\n" "\n" ".. method:: __call__(inter)\n" "\n" " Returns the density evaluated for an Interface1D. The density is\n" " evaluated for a set of points along the Interface1D (using the\n" " :class:`freestyle.functions.DensityF0D` functor) with a user-defined\n" " sampling and then integrated into a single value using a user-defined\n" " integration method.\n" "\n" " :arg inter: An Interface1D object.\n" " :type inter: :class:`freestyle.types.Interface1D`\n" " :return: The density evaluated for an Interface1D.\n" " :rtype: float\n")
PyTypeObject DensityF1D_Type
PyTypeObject IntegrationType_Type
PyTypeObject UnaryFunction1DDouble_Type