Learn R Programming

LS2Wstat (version 2.1-5)

lincurve: A linear function between two constant values.

Description

A function with which to generate nonstationary covariance structure.

Usage

lincurve(x, start = 1, end = 2, a = 0.25)

Value

y

the y-values associated to the linear function.

Arguments

x

a sequence of x-values.

start

a starting value for the linear function.

end

an ending value for the linear function.

a

a proportion of the x-values for the linear part of the function.

Author

Matt Nunes

See Also

scurve, simTexture

Examples

Run this code

x<-seq(0,1,length=128)

y<-lincurve(x,start=1,end=2,a=.25)

plot(x,y,type="l")

Run the code above in your browser using DataLab