f: Piecewise smooth function used in area penalty

Description Usage Arguments Value Author(s)

View source: R/spheristruct.R

Description

Piecewise, smooth function that increases linearly with negative arguments.

f(x) = ≤ft\{ \begin{array}{ll} -(x - x_0/2) & x < 0 \\ \frac{1}{2x_0}(x - x_0)^2 & 0 < x <x_0 \\ 0 & x ≥ x_0 \end{array} \right.

Usage

1
f(x, x0)

Arguments

x

Main argument

x0

The cut-off parameter. Above this value the function is zero.

Value

The value of the function.

Author(s)

David Sterratt


retistruct documentation built on April 4, 2020, 5:08 p.m.