Wikipedia

Ramp function

Graph of the ramp function

The ramp function is a unary real function, whose graph is shaped like a ramp. In machine learning, it is commonly known as the rectifier used in rectified linear units (ReLUs). It can be expressed by numerous definitions, for example "0 for negative inputs, output equals input for non-negative inputs". The term "ramp" can also be used for other functions obtained by scaling and shifting, and the function in this article is the unit ramp function (slope 1, starting at 0).

This function has numerous applications in mathematics and engineering, and goes by various names, depending on the context.

Definitions

The ramp function (R(x) : ℝ → ℝ0+) may be defined analytically in several ways. Possible definitions are:

this can be derived by noting the following definition of max(a,b),
for which a = x and b = 0

Applications

The ramp function has numerous applications in engineering, such as in the theory of digital signal processing.

Payoff and profits from buying a call option.

In finance, the payoff of a call option is a ramp (shifted by strike price). Horizontally flipping a ramp yields a put option, while vertically flipping (taking the negative) corresponds to selling or being "short" an option. In finance, the shape is widely called a "hockey stick", due to the shape being similar to an ice hockey stick.

A mirrored pair of hinge functions with a knot at x=3.1

In statistics, hinge functions of multivariate adaptive regression splines (MARS) are ramps, and are used to build regression models.

Analytic properties

Non-negativity

In the whole domain the function is non-negative, so its absolute value is itself, i.e.

and

  • Proof: by the mean of definition 2, it is non-negative in the first quarter, and zero in the second; so everywhere it is non-negative.

Derivative

Its derivative is the Heaviside function:

Second derivative

The ramp function satisfies the differential equation:

where δ(x) is the Dirac delta. This means that R(x) is a Green's function for the second derivative operator. Thus, any function, f(x), with an integrable second derivative, f″(x), will satisfy the equation:

Fourier transform

where δ(x) is the Dirac delta (in this formula, its derivative appears).

Laplace transform

The single-sided Laplace transform of R(x) is given as follows,[2]

Algebraic properties

Iteration invariance

Every iterated function of the ramp mapping is itself, as

  • Proof:

This applies the non-negative property.

See also

  • Activation function
  • Rectifier (neural networks)
  • Tobit model

References

  1. ^ Weisstein, Eric W. "Ramp Function". MathWorld.
  2. ^ "The Laplace Transform of Functions". lpsa.swarthmore.edu. Retrieved 2019-04-05.
This article is copied from an article on Wikipedia® - the free encyclopedia created and edited by its online user community. The text was not checked or edited by anyone on our staff. Although the vast majority of Wikipedia® encyclopedia articles provide accurate and timely information, please do not assume the accuracy of any particular article. This article is distributed under the terms of GNU Free Documentation License.

Copyright © 2003-2025 Farlex, Inc Disclaimer
All content on this website, including dictionary, thesaurus, literature, geography, and other reference data is for informational purposes only. This information should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional.