R/wtflat.R

Defines functions wtflat

wtflat <- function(x, c)
{
    if(-1 < x & x <= -c)
    {
        return(x/(1-c) + 1/(1-c))
    }
    if(-c < x & x < c)
    {
        return(1)
    }
    if(c < x & x < 1)
    {
        return(x/(c - 1) - 1/(c - 1))
    }
    else return(0)
}

Try the ftsa package in your browser

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

ftsa documentation built on May 29, 2024, 2:47 a.m.