Learn R Programming

refund (version 0.1-40)

make_random_2d_fn: Create 2D random surface function from P-spline prior

Description

Returns a function that can be evaluated at arbitrary (s, t) points. The surface is scaled to unit SD on the reference grids.

Usage

make_random_2d_fn(s_ref, t_ref, k_s, k_t, wiggliness)

Value

Function(s, t) returning a matrix.

Arguments

s_ref

Reference grid for first dimension (for scaling).

t_ref

Reference grid for second dimension (for scaling).

k_s

Basis dimension for s.

k_t

Basis dimension for t.

wiggliness

Controls smoothness.