Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
used new style of transform for Kernelfunctions (#28)
* used new style of transform for Kernelfunctions * update version number KernelFunctions Co-authored-by: Johannes Giersdorf <johannes.giersdorf@gmail.com>
- Loading branch information
1 parent
c308de8
commit 7d3ccda
Showing
4 changed files
with
11 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
@testset "bayesquad" begin | ||
|
||
@testset "lengthscale and variance" begin | ||
σ²_k = 1.5; l_k = 1.5 | ||
k = σ²_k * SqExponentialKernel() ∘ ScaleTransform(1. / l_k) | ||
bq = BayesQuad(k) | ||
@test bq.σ ≈ σ²_k | ||
@test bq.l ≈ l_k | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters