File tree Expand file tree Collapse file tree 4 files changed +16
-20
lines changed Expand file tree Collapse file tree 4 files changed +16
-20
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,7 @@ uuid = "89f642e6-4179-4274-8202-c11f4bd9a72c"
3
3
authors = [" Samuel Belko <samuelbelko@protonmail.com> and contributors" ]
4
4
version = " 1.0.0"
5
5
6
- [deps ]
7
- Statistics = " 10745b16-79ce-11e8-11f9-7d13ad32a3b2"
8
- StatsBase = " 2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
9
-
10
6
[compat ]
11
- Statistics = " 1"
12
- StatsBase = " 0.34"
13
7
julia = " 1.10"
14
8
15
9
[extras ]
Original file line number Diff line number Diff line change 1
1
using Documenter, SurrogatesBase
2
2
3
+ DocMeta. setdocmeta! (SurrogatesBase,
4
+ :DocTestSetup ,
5
+ :(using SurrogatesBase))
6
+
3
7
cp (" ./docs/Manifest.toml" , " ./docs/src/assets/Manifest.toml" , force = true )
4
8
cp (" ./docs/Project.toml" , " ./docs/src/assets/Project.toml" , force = true )
5
9
@@ -14,7 +18,7 @@ ENV["GKSwstype"] = "100"
14
18
makedocs (modules = [SurrogatesBase],
15
19
sitename = " SurrogatesBase.jl" ,
16
20
clean = true ,
17
- doctest = false ,
21
+ doctest = true ,
18
22
linkcheck = true ,
19
23
format = Documenter. HTML (assets = [" assets/favicon.ico" ],
20
24
canonical = " https://docs.sciml.ai/SurrogatesBase/stable/" ),
Original file line number Diff line number Diff line change @@ -75,8 +75,7 @@ The following methods might be supported:
75
75
76
76
- ` mean(finite_posterior(s,xs)) ` returns a ` Vector ` of posterior means at ` xs `
77
77
- ` var(finite_posterior(s,xs)) ` returns a ` Vector ` of posterior variances at ` xs `
78
- - ` mean_and_var(finite_posterior(s,xs)) ` returns a ` Tuple ` consisting of a ` Vector `
79
- of posterior means and a ` Vector ` of posterior variances at ` xs `
78
+ - ` mean_and_var(finite_posterior(s,xs)) ` returns a ` Tuple ` consisting of a ` Vector ` of posterior means and a ` Vector ` of posterior variances at ` xs `
80
79
- ` rand(finite_posterior(s,xs)) ` returns a ` Vector ` , which is a sample from the joint posterior at points ` xs `
81
80
82
81
### Optional methods
Original file line number Diff line number Diff line change @@ -18,18 +18,18 @@ Subtypes of `AbstractDeterministicSurrogate` are callable with a `Vector` of poi
18
18
The result is a `Vector` of evaluations of the surrogate at points `xs`, corresponding to
19
19
approximations of the underlying function at points `xs` respectively.
20
20
21
- # Examples
22
- ```jldoctest
23
- julia> struct ZeroSurrogate <: AbstractDeterministicSurrogate end
21
+ # Examples
24
22
25
- julia> (::ZeroSurrogate)(xs) = 0
23
+ ```jldoctest
24
+ julia> struct ZeroSurrogate <: AbstractDeterministicSurrogate end
26
25
27
- julia> s = ZeroSurrogate()
28
- ZeroSurrogate()
26
+ julia> (::ZeroSurrogate)(xs) = 0
29
27
30
- julia> s([4]) == 0
31
- true
32
- ```
28
+ julia> s = ZeroSurrogate();
29
+
30
+ julia> s([4]) == 0
31
+ true
32
+ ```
33
33
"""
34
34
abstract type AbstractDeterministicSurrogate <: Function end
35
35
@@ -93,8 +93,7 @@ the returned object:
93
93
94
94
- `mean(finite_posterior(s,xs))` returns a `Vector` of posterior means at `xs`
95
95
- `var(finite_posterior(s,xs))` returns a `Vector` of posterior variances at `xs`
96
- - `mean_and_var(finite_posterior(s,xs))` returns a `Tuple` consisting of a `Vector`
97
- of posterior means and a `Vector` of posterior variances at `xs`
96
+ - `mean_and_var(finite_posterior(s,xs))` returns a `Tuple` consisting of a `Vector` of posterior means and a `Vector` of posterior variances at `xs`
98
97
- `rand(finite_posterior(s,xs))` returns a `Vector`, which is a sample from the joint
99
98
posterior at points `xs`
100
99
You can’t perform that action at this time.
0 commit comments