API

Symmetric band

AbstractGPsMakie.symbandFunction
symband(x, y, Δy; bandscale=1.0, kwargs...)
symband(xy, Δy; bandscale=1.0, kwargs...)

Plot a symmetric band of radius bandscale * Δy around (x, y).

Attributes

Available attributes and their defaults for MakieCore.Plot{AbstractGPsMakie.symband} are:

  bandscale    1.0
  color        RGBA{Float32}(0.0f0,0.0f0,0.0f0,0.6f0)
  colormap     :viridis
  colorrange   MakieCore.Automatic()
  cycle        [:color => :patchcolor]
  inspectable  true
  linecolor    MakieCore.Automatic()
  linestyle    "nothing"
  linewidth    1.5
source

Example

using AbstractGPsMakie
using CairoMakie

x = 1:10
y = rand(10)
Δy = rand(10)
symband(x, y, Δy; color=(:blue, 0.3), bandscale=2.5)

symband example

Samples

AbstractGPsMakie.gpsampleFunction
gpsample([x, ]gp::FiniteGP; samples=1, orbit=0.0, kwargs...)

Plot sample(s) from the finite projection of the Gaussian process gp along x.

If x is not provided, it is set to gp.x.

The orbit keyword argument can be used to visualize a manifold of similar samples.[PH2013] Values are mapped to the interval $[0, 1)$ which correspond to angles in $[0, 2\pi)$ on the great circle of samples.

Attributes

Available attributes and their defaults for MakieCore.Plot{AbstractGPsMakie.gpsample} are:

  color        :black
  colormap     :viridis
  colorrange   MakieCore.Automatic()
  cycle        [:color]
  inspectable  true
  linestyle    "nothing"
  linewidth    1.5
  orbit        0.0
  samples      1
source
gpsample(x::AbstractVector, gp::AbstractGP; kwargs...)

Plot sample(s) from the finite projection gp(x, 1e-9) along x.

source
AbstractGPsMakie.gpsampleMethod
gpsample(x::AbstractVector, gp::AbstractGP; kwargs...)

Plot sample(s) from the finite projection gp(x, 1e-9) along x.

source

Example

using AbstractGPs
using AbstractGPsMakie
using CairoMakie

gp = GP(Matern32Kernel())
gpsample(0:0.01:10, gp; samples=10, color=:red)

gpsample example