Learn R Programming

lgspline (version 0.2.0)

softplus: Compute softplus transform

Description

Computes the softplus transform, equivalent to the cumulant generating function of a logistic regression model: \(\log(1+e^x)\).

Usage

softplus(x)

Value

Softplus transformed vector

Arguments

x

Numeric vector to apply softplus to

Examples

Run this code
x <- runif(5)
softplus(x)

Run the code above in your browser using DataLab