softplus: Compute softplus transform

View source: R/HelperFunctions.R

softplusR 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


v <- runif(5)
softplus(v)



lgspline documentation built on May 8, 2026, 5:07 p.m.