home *** CD-ROM | disk | FTP | other *** search
-
- _s_t_e_p_f_u_n _C_o_m_p_u_t_e _a _S_t_e_p _F_u_n_c_t_i_o_n
-
- stepfun(x, y=<<see below>>, type="left")
-
- _A_r_g_u_m_e_n_t_s:
-
- x:
- either vectors or a list with components named x and
- y giving the locations of the jumps in the function. x
- must be in increasing order.
-
- y:
- either vectors or a list with components named x and
- y giving the locations of the jumps in the function. x
- must be in increasing order.
-
- type:
- the string "left" for a left continuous step function
- or "right" for a right continuous step function. Only
- the first character of the string is needed.
-
- Value:
-
- a list with the following components:
-
- x:
- a vector of the unique values in the input x with all
- but one of the end values repeated.
-
- y:
- values of the step function taken from the input y.
-
- Description:
-
- Computes a left- or right-continuous step function
- from (x,y) points.
-
-