sample_gaussian: Sample conditional Gaussian variables

View source: R/sampling.R

sample_gaussianR Documentation

Sample conditional Gaussian variables

Description

Sample conditional Gaussian variables

Usage

sample_gaussian(index_given, n_samples, mu, cov_mat, m, x_test)

Arguments

index_given

Integer vector. The indices of the features to condition upon. Note that min(index_given) >= 1 and max(index_given) <= m.

m

Positive integer. The total number of features.

x_test

Numeric matrix. Contains the features of the observation whose predictions ought to be explained (test data).

Value

data.table

Author(s)

Martin Jullum


shapr documentation built on May 4, 2023, 5:10 p.m.