noise: Add noise to a sample

noiseR Documentation

Add noise to a sample

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

add_noise(x, sd = 0)

Arguments

x

A matrix of row coordinates.

sd

Standard deviation of (independent multivariate) Gaussian noise.


corybrunson/tdaunif documentation built on Feb. 2, 2024, 8:22 p.m.