R/TentFn.R

Defines functions TentFn

Documented in TentFn

TentFn <-
function(X, S=2){
  if(X < 0.5) Y = S*X
  if(X >= 0.5) Y = S*(1-X)
  return(Y)
}

Try the nwfscNLTS package in your browser

Any scripts or data that you put into this service are public.

nwfscNLTS documentation built on May 2, 2019, 4:31 p.m.