trans_2pow: 2 power x transformation

View source: R/spotTransform.R

trans_2powR Documentation

2 power x transformation

Description

Parameter values can be translated, e.g., to base 10 as implemented in trans_10pow. trans_2pow implements the transformation x -> 2^x.

Usage

trans_2pow(x)

Arguments

x

input

Value

2^x

Examples

f2 <- function(x){2^x}
fn <- c("identity", "exp", "f2")
xNat <- diag(3)
SPOT::transformX(xNat, fn)


SPOTMisc documentation built on Sept. 5, 2022, 5:06 p.m.