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 Aug. 5, 2026, 1:10 a.m.