Step function

From Wikipedia, the free encyclopedia

(Redirected from Piecewise constant)
Jump to: navigation, search

In mathematics, a function on the real numbers is called a step function if it can be written as a finite linear combination of indicator functions of half-open intervals. Informally speaking, a step function is a piecewise constant function having only finitely many pieces.

Example of a step function with n=4.
Example of a step function with n=4.

Let the following quantities be given:

  • a sequence of coefficients
    \{\alpha_0, \dots, \alpha_n\}\subset \mathbb{R},\; n \in \mathbb{N}  \setminus \{0\}
  • a sequence of interval margins
    \{x_1 < \dots < x_{n-1}\} \subset \mathbb{R}
  • a sequence of intervals
    A_0 := (-\infty, x_1)
    A_i := [x_i, x_{i+1})\, (for i=1,\cdots,n-2)
    A_n := [x_{n-1},\infty)
    (Although the intervals are shown as being closed below and open above, this is not necessary to the definition; all that is required is that the intervals An do not intersect and that their union is the set of real numbers.)

Definition: Given the notations above, a function f: \mathbb{R} \rightarrow \mathbb{R} is a step function if and only if it can be written as


f(x) = \sum\limits_{i=0}^n \alpha_i \cdot 1_{A_i}(x)
for all x \in \mathbb{R} where 1_A\, is the indicator function of A\,:
1_A(x) =
\left\{
  \begin{matrix}
    1, & \mathrm{if} \; x \in A \\ 
    0, & \mathrm{otherwise}. 
  \end{matrix}
\right.

Note: for all i=0,\cdots,n and x \in A_i it holds: f(x)=\alpha_i\,.

A particular step function, the unit step function or Heaviside step function H(x), is obtained by setting n=1, α0=0, α1=1, and x1=0 in the general expression above. It is the mathematical concept behind some test signals, as those used to determine the step response of a dynamical system.

Advanced Search
Included Web Search Engines


Safe Search

close

Top Matching Results

Occasionally Search.com will highlight specialized results that are based on the context of your query. Examples of specialized results include specific links to news, images, or video.

Top Matching Results may highlight information from other Search.com pages, content from the CNET Network of sites, or third party content. The listings are based purely on relevance. Search.com does not receive payment for listings in this section but our partners that provide this data may get paid for listing these products.

Sponsored Links

This section contains paid listings which have been purchased by companies that want to have their sites appear for specific search terms and related content. These listings are administered, sorted and maintained by a third party and are not endorsed by Search.com.

Search Results

Search.com sends your search query to several search engines at one time and integrates the results into one list which has been sorted by relevance using Search.com's proprietary algorithm. You can customize the list of search engines included in your metasearch from the preferences.

The search engines that are used in your metasearch may allow companies to pay to have their Web sites included within the results. To view the Paid Inclusion policy for a specific search engine, please visit their Web site. Search.com does not accept payment or share revenue with any search engine partner for listings in this section.