Skip to content

Commit 60e5cd6

Browse files
committed
incorporate review suggestion
1 parent f118cb4 commit 60e5cd6

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

docs/src/kernels.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,11 @@ where $r$ has the same dimension as $x$ and $r_i > 0$.
153153

154154
## Piecewise Polynomial Kernel
155155

156-
The [`PiecewisePolynomialKernel`](@ref) is defined for $x\in \mathbb{R}^D$ and $V \in \{0,1,2,3\}$ as
156+
The [`PiecewisePolynomialKernel`](@ref) is defined for $x, x'\in \mathbb{R}^D$, a positive-definite matrix $P \in \mathbb{R}^{D \times D}$, and $V \in \{0,1,2,3\}$ as
157157
```math
158-
k(x,x'; P, V) = \max(1 - r, 0)^{j + V} f_V(r, j),
158+
k(x,x'; P, V) = \max(1 - x^\top P x', 0)^{j + V} f_V(x^\top P x', j),
159159
```
160-
where $r = x^\top P x'$ (with $P$ a positive-definite matrix) and $j = \lfloor \frac{D}{2}\rfloor + V + 1$.
161-
162-
The polynomials $f_V$ are defined as follows:
160+
where $j = \lfloor \frac{D}{2}\rfloor + V + 1$, and $f_V$ are polynomials defined as follows:
163161
````math
164162
\begin{aligned}
165163
f_0(r, j) &= 1, \\

0 commit comments

Comments
 (0)