Skip to content

Commit cd26d09

Browse files
authored
Mention metric in the docstring of RationalKernel (#383)
1 parent f78f028 commit cd26d09

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/basekernels/rational.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ Rational kernel with shape parameter `α` and given `metric`.
55
66
# Definition
77
8-
For inputs ``x, x'``, the rational kernel with shape parameter
9-
``\\alpha > 0`` is defined as
8+
For inputs ``x, x'`` and metric ``d(\\cdot, \\cdot)``, the rational kernel with shape parameter ``\\alpha > 0`` is defined as
109
```math
11-
k(x, x'; \\alpha) = \\bigg(1 + \\frac{\\|x - x'\\|}{\\alpha}\\bigg)^{-\\alpha}.
10+
k(x, x'; \\alpha) = \\bigg(1 + \\frac{d(x, x')}{\\alpha}\\bigg)^{-\\alpha}.
1211
```
12+
By default, ``d`` is the Euclidean metric ``d(x, x') = \\|x - x'\\|_2``.
1313
1414
The [`ExponentialKernel`](@ref) is recovered in the limit as ``\\alpha \\to \\infty``.
1515

0 commit comments

Comments
 (0)