eVal: Generate a sequence of simulated eigenvalues

Description Usage Arguments Details Value Examples

View source: R/simulation.R

Description

This function generates M decreasing eigenvalues.

Usage

1
eVal(M, type)

Arguments

M

An integer, the number of eigenvalues to be generated.

type

A character string specifying the type of eigenvalues that should be calculated. See Details.

Details

The function implements three types of eigenvalues:

Value

A vector containing the M decreasing eigenvalues.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
oldpar <- par(no.readonly = TRUE)

# simulate M = 10 eigenvalues
M <- 10
eLin <- eVal(M = M, type = "linear")
eExp <- eVal(M = M, type = "exponential")
eWien <- eVal(M = M, type = "wiener")

par(mfrow = c(1,1))
plot(1:M, eLin, pch = 20, xlab = "m", ylab = expression(nu[m]), ylim = c(0,1))
points(1:M, eExp, pch = 20, col = 3)
points(1:M, eWien, pch = 20, col = 4)
legend("topright", legend = c("linear", "exponential", "wiener"), pch = 20, col = c(1,3,4))

par(oldpar)

Example output

Attaching package: 'funData'

The following object is masked from 'package:stats':

    integrate

funData documentation built on Oct. 17, 2021, 5:06 p.m.