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)
}
James-Thorson/NLTS documentation built on May 7, 2019, 10:19 a.m.