noise: Add noise to a sample

Description Usage Arguments

Description

This function adds Gaussian noise to coordinate data contained in a matrix. It is called by samplers to introduce noise when sd is passed a positive value.

Usage

1
add_noise(x, sd = 0)

Arguments

x

A matrix of row coordinates.

sd

Standard deviation of (independent multivariate) Gaussian noise.


tdaunif documentation built on Oct. 26, 2020, 5:08 p.m.