Skip to content

Commit

Permalink
Fix formula of Gabor kernel (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
devmotion authored May 6, 2021
1 parent 70e3593 commit 3d8b245
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/basekernels/gabor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Gabor kernel with lengthscale `ell` and period `p`.
For inputs ``x, x' \\in \\mathbb{R}^d``, the Gabor kernel with lengthscale ``l_i > 0``
and period ``p_i > 0`` is defined as
```math
k(x, x'; l, p) = \\exp\\bigg(- \\cos\\bigg(\\pi\\sum_{i=1}^d \\frac{x_i - x'_i}{p_i}\\bigg)
\\sum_{i=1}^d \\frac{(x_i - x'_i)^2}{l_i^2}\\bigg).
k(x, x'; l, p) = \\exp\\bigg(- \\sum_{i=1}^d \\frac{(x_i - x'_i)^2}{2l_i^2}\\bigg)
\\cos\\bigg(\\pi \\bigg(\\sum_{i=1}^d \\frac{(x_i - x'_i)^2}{p_i^2} \\bigg)^{1/2}\\bigg).
```
"""
struct GaborKernel{K<:Kernel} <: Kernel
Expand Down

0 comments on commit 3d8b245

Please sign in to comment.