add_error_to_motif: Add Additive Error to Motif

View source: R/S4_utilities.R

add_error_to_motifR Documentation

Add Additive Error to Motif

Description

This function adds an additive noise to a given motif based on specified parameters. The noise is generated as a percentage of the standard deviation of the motif.

Usage

add_error_to_motif(or_y, noise_str, start_point, end_point, k)

Arguments

or_y

A numeric vector representing the original motif values.

noise_str

A string or numeric vector indicating the structure of the noise to be added.

start_point

A numeric vector indicating the starting points of motifs.

end_point

A numeric vector indicating the ending points of motifs.

k

An integer representing the current iteration or motif index.

Details

Add Error to Motif

Value

A numeric vector of the motif values with added noise.


funMoDisco documentation built on April 16, 2025, 1:10 a.m.