VarSine: Variance of a Sine wave

View source: R/spec-model.R

VarSineR Documentation

Variance of a Sine wave

Description

Variance of a Sine wave

Usage

VarSine(full.amp)

Arguments

full.amp

Peak to peak amplitude of a sine wave

Value

numeric, the variance of a sine wave

Examples

x <- sin(seq(0, 2 * pi, length.out = 1000))
plot(x, type = "l")
var(x)
VarSine(2)
x5 <- x * 5
var(x5)
VarSine(diff(range(x5)))

EarthSystemDiagnostics/psem documentation built on March 3, 2024, 10:24 p.m.