Kernel set

kernel_set_double

class dcgpy.kernel_set_double(kernels)

Helper to construct a set of kernel functions from their common name

Constructs a set of common kernel functions from their common name. The kernel functions can be then retrieved via the call operator.

Parameters

kernels (list of string) – a list of strings indicating names of kernels to use. The following are available: “sum”, “diff”, “mul”, “div”, “sig”, “sin”, “log”, “exp”

Examples:

>>> from dcgpy import *
>>> kernels = kernel_set_double(["sum", "diff", "mul", "div"])
>>> kernels()[0](["x", "y"])
push_back()

push_back(kernel_name)

Adds one more kernel to the set by common name.

Parameters

kernel_name (string) – a string containing the kernel name

push_back(kernel)

Adds one more kernel to the set.

Parameters

kernel (dcgpy.kernel_double) – the kernel to add

kernel_set_gdual_double

class dcgpy.kernel_set_gdual_double(kernels)

Helper to construct a set of kernel functions from their common name

Constructs a set of common kernel functions from their common name. The kernel functions can be then retrieved via the call operator.

Parameters

kernels (list of string) – a list of strings indicating names of kernels to use. The following are available: “sum”, “diff”, “mul”, “div”, “sig”, “sin”, “log”, “exp”

Examples:

>>> from dcgpy import *
>>> kernels = kernel_set_gdual_double(["sum", "diff", "mul", "div"])
>>> kernels()[0](["x", "y"])
push_back()

push_back(kernel_name)

Adds one more kernel to the set by common name.

Parameters

kernel_name (string) – a string containing the kernel name

push_back(kernel)

Adds one more kernel to the set.

Parameters

kernel (dcgpy.kernel_gdual_double) – the kernel to add

kernel_set_gdual_vdouble

class dcgpy.kernel_set_gdual_vdouble(kernels)

Helper to construct a set of kernel functions from their common name

Constructs a set of common kernel functions from their common name. The kernel functions can be then retrieved via the call operator.

Parameters

kernels (list of string) – a list of strings indicating names of kernels to use. The following are available: “sum”, “diff”, “mul”, “div”, “sig”, “sin”, “log”, “exp”

Examples:

>>> from dcgpy import *
>>> kernels = kernel_set_gdual_vdouble(["sum", "diff", "mul", "div"])
>>> kernels()[0](["x", "y"])
push_back()

push_back(kernel_name)

Adds one more kernel to the set by common name.

Parameters

kernel_name (string) – a string containing the kernel name

push_back(kernel)

Adds one more kernel to the set.

Parameters

kernel (dcgpy.kernel_gdual_vdouble) – the kernel to add