ksd: Compute a cumulative sequence of KSD values

Description Usage Arguments Value

View source: R/stein.R

Description

Compute a cumulative sequence of KSD values

Usage

1
ksd(x, s, vfk0)

Arguments

x

n-by-d matrix of n d-dimensional sample points.

s

n-by-d matrix of gradients of log target at x.

vfk0

vectorised Stein kernel function.

Value

n-vector of cumulative KSD values.


wilson-ye-chen/stein.thinning documentation built on Jan. 8, 2022, 11:42 a.m.