Nothing
boundedTransform <-
function (x, transform="atox", bounds) {
eps <- 2.2204e-16
thre <- 36 ## threshold
y <- array(0, dim(as.array(x)))
if ( "atox" == transform ) {
for ( ind in seq_along(as.array(x)) ) {
if ( x[ind] > thre )
y[ind] <- 1-eps
else if ( x[ind] < -thre )
y[ind] <- eps
else
y[ind] <- 1/(1+exp(-x[ind]))
}
y <- (bounds[2] - bounds[1])*y + bounds[1]
} else if ( "xtoa" == transform ) {
x <- (x - bounds[1]) / (bounds[2] - bounds[1])
for ( ind in seq_along(as.array(x)) ) {
y[ind] <- .complexLog(x[ind]/(1-x[ind]))
}
} else if ( "gradfact" == transform ) {
y <- (x-bounds[1])*(1-(x-bounds[1])/(bounds[2] - bounds[1]))
}
return (y)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.