RFF_get: Create a new RFF function

Description Usage Arguments Value Examples

View source: R/RFF.R

Description

Create a new RFF function

Usage

1
RFF_get(D = 2, M = 30, wave = sin, noise = 0, seed = NULL)

Arguments

D

Number of dimensions

M

Number of random waves

wave

Type of wave

noise

Standard deviation of random normal noise to add

seed

Seed to set before randomly selecting function

Value

A random wave function

Examples

1
2
3
4
5
6
func <- RFF_get(D=1)
curve(func)

f <- RFF_get(D=1, noise=.1)
curve(f(matrix(x,ncol=1)))
for(i in 1:100) curve(f(matrix(x,ncol=1)), add=TRUE, col=sample(2:8,1))

TestFunctions documentation built on May 2, 2019, 2:42 a.m.