Learn R Programming

gmwm (version 2.0.0)

gen_dr: Generate a drift

Description

Generates a drift sequence with a given slope.

Usage

gen_dr(N, slope = 5)

Arguments

N
An integer for signal length.
slope
A double that contains drift slope

Value

gd A vec containing the drift.

Examples

Run this code
gen_dr(10, 8.2)

Run the code above in your browser using DataLab