Skip to content

Matern Kernel implementation needed (C++) #31

Open
@positiveblue

Description

The #28 pull request give us all the flow to use the Matern kernel from the capi. However, the implementation is missed (gram and symmetric_gram functions are empty) For now, I will throw an exception if someone tries to execute them.

The function should have that behavior (this is python code that should be translated to C++):

D = euclidean(X, Xt);
Y = scipy.sqrt(2.0 * nu * D) / l
K = 2.0 ** (1 - nu) / scipy.special.gamma(nu) * Y ** nu * scipy.special.kv(nu, Y)
return scipy.real(K)

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions