softplus {lgspline}R Documentation

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)

Arguments

x

Numeric vector to apply softplus to

Value

Softplus transformed vector

Examples

x <- runif(5)
softplus(x)


[Package lgspline version 0.2.0 Index]