HOME

TheInfoList



OR:

The ramp function is a unary
real function In mathematical analysis, and applications in geometry, applied mathematics, engineering, and natural sciences, a function of a real variable is a function whose domain is the real numbers \mathbb, or a subset of \mathbb that contains an inter ...
, whose graph is shaped like a ramp. It can be expressed by numerous
definitions A definition is a statement of the meaning of a term (a word, phrase, or other set of symbols). Definitions can be classified into two large categories: intensional definitions (which try to give the sense of a term), and extensional definit ...
, 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). In mathematics, the ramp function is also known as the positive part. In
machine learning Machine learning (ML) is a field of study in artificial intelligence concerned with the development and study of Computational statistics, statistical algorithms that can learn from data and generalise to unseen data, and thus perform Task ( ...
, it is commonly known as a ReLU activation function or a
rectifier A rectifier is an electrical device that converts alternating current (AC), which periodically reverses direction, to direct current (DC), which flows in only one direction. The process is known as ''rectification'', since it "straightens" t ...
in analogy to half-wave rectification in
electrical engineering Electrical engineering is an engineering discipline concerned with the study, design, and application of equipment, devices, and systems that use electricity, electronics, and electromagnetism. It emerged as an identifiable occupation in the l ...
. In
statistics Statistics (from German language, German: ', "description of a State (polity), state, a country") is the discipline that concerns the collection, organization, analysis, interpretation, and presentation of data. In applying statistics to a s ...
(when used as a
likelihood function A likelihood function (often simply called the likelihood) measures how well a statistical model explains observed data by calculating the probability of seeing that data under different parameter values of the model. It is constructed from the ...
) it is known as a tobit model. This function has numerous applications in mathematics and engineering, and goes by various names, depending on the context. There are differentiable variants of the ramp function.


Definitions

The ramp function () may be defined analytically in several ways. Possible definitions are: * A piecewise function: R(x) := \begin x, & x \ge 0; \\ 0, & x<0 \end * Using the Iverson bracket notation: R(x) := x \cdot \geq 0/math> or R(x) := x \cdot > 0/math> * The max function: R(x) := \max(x,0) * The
mean A mean is a quantity representing the "center" of a collection of numbers and is intermediate to the extreme values of the set of numbers. There are several kinds of means (or "measures of central tendency") in mathematics, especially in statist ...
of an independent variable and its
absolute value In mathematics, the absolute value or modulus of a real number x, is the non-negative value without regard to its sign. Namely, , x, =x if x is a positive number, and , x, =-x if x is negative (in which case negating x makes -x positive), ...
(a straight line with unity gradient and its modulus): R(x) := \frac this can be derived by noting the following definition of , \max(a,b) = \frac for which and * The Heaviside step function multiplied by a straight line with unity gradient: R\left( x \right) := x H(x) * The
convolution In mathematics (in particular, functional analysis), convolution is a operation (mathematics), mathematical operation on two function (mathematics), functions f and g that produces a third function f*g, as the integral of the product of the two ...
of the Heaviside step function with itself: R\left( x \right) := H(x) * H(x) * The
integral In mathematics, an integral is the continuous analog of a Summation, sum, which is used to calculate area, areas, volume, volumes, and their generalizations. Integration, the process of computing an integral, is one of the two fundamental oper ...
of the Heaviside step function: R(x) := \int_^ H(\xi)\,d\xi * Macaulay brackets: R(x) := \langle x\rangle * The positive part of the
identity function Graph of the identity function on the real numbers In mathematics, an identity function, also called an identity relation, identity map or identity transformation, is a function that always returns the value that was used as its argument, unc ...
: R := \operatorname^+ * As a limit function: R\left( x \right) := \lim_ \begin \frac ,\quad x=0 \\ \dfrac,\quad x\neq 0\end It could approximated as close as desired by choosing an increasing positive value a>0 .


Applications

The ramp function has numerous applications in engineering, such as in the theory of
digital signal processing Digital signal processing (DSP) is the use of digital processing, such as by computers or more specialized digital signal processors, to perform a wide variety of signal processing operations. The digital signals processed in this manner are a ...
. In
finance Finance refers to monetary resources and to the study and Academic discipline, discipline of money, currency, assets and Liability (financial accounting), liabilities. As a subject of study, is a field of Business administration, Business Admin ...
, the payoff of a
call option In finance, a call option, often simply labeled a "call", is a contract between the buyer and the seller of the call Option (finance), option to exchange a Security (finance), security at a set price. The buyer of the call option has the righ ...
is a ramp (shifted by ''strike price''). Horizontally flipping a ramp yields a
put option In finance, a put or put option is a derivative instrument in financial markets that gives the holder (i.e. the purchaser of the put option) the right to sell an asset (the ''underlying''), at a specified price (the ''strike''), by (or on) a ...
, 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. In
statistics Statistics (from German language, German: ', "description of a State (polity), state, a country") is the discipline that concerns the collection, organization, analysis, interpretation, and presentation of data. In applying statistics to a s ...
, 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 In mathematics, the absolute value or modulus of a real number x, is the non-negative value without regard to its sign. Namely, , x, =x if x is a positive number, and , x, =-x if x is negative (in which case negating x makes -x positive), ...
is itself, i.e. \forall x \in \Reals: R(x) \geq 0 and \left, R (x) \ = R(x)


Derivative

Its derivative is the Heaviside step function: R'(x) = H(x)\quad \mbox x \ne 0.


Second derivative

The ramp function satisfies the differential equation: \frac R(x - x_0) = \delta(x - x_0), where is the Dirac delta. This means that is a Green's function for the second derivative operator. Thus, any function, , with an integrable second derivative, , will satisfy the equation: f(x) = f(a) + (x-a) f'(a) + \int_^b R(x - s) f''(s) \,ds \quad \mboxa < x < b .


Fourier transform In mathematics, the Fourier transform (FT) is an integral transform that takes a function as input then outputs another function that describes the extent to which various frequencies are present in the original function. The output of the tr ...

\mathcal\big\(f) = \int_^ R(x) e^ \, dx = \frac-\frac, where is the Dirac delta (in this formula, its
derivative In mathematics, the derivative is a fundamental tool that quantifies the sensitivity to change of a function's output with respect to its input. The derivative of a function of a single variable at a chosen input value, when it exists, is t ...
appears).


Laplace transform In mathematics, the Laplace transform, named after Pierre-Simon Laplace (), is an integral transform that converts a Function (mathematics), function of a Real number, real Variable (mathematics), variable (usually t, in the ''time domain'') to a f ...

The single-sided
Laplace transform In mathematics, the Laplace transform, named after Pierre-Simon Laplace (), is an integral transform that converts a Function (mathematics), function of a Real number, real Variable (mathematics), variable (usually t, in the ''time domain'') to a f ...
of is given as follows, \mathcal\big\ (s) = \int_^ e^R(x)dx = \frac.


Algebraic properties


Iteration invariance

Every
iterated function In mathematics, an iterated function is a function that is obtained by composing another function with itself two or several times. The process of repeatedly applying the same function is called iteration. In this process, starting from some ...
of the ramp mapping is itself, as R \big( R(x) \big) = R(x) .


See also

* Tobit model * Rectifier (neural networks)


References

{{Reflist Real analysis Special functions