R/hingeval.R

Defines functions hingeval

hingeval <-
function(x, min, max)
{
   pmin(1, pmax(0, (x-min)/(max-min)))
}

Try the maxnet package in your browser

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

maxnet documentation built on July 9, 2021, 5:08 p.m.