home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Educational / R-0.49-MI / R-0.49-I / help / local / stepfun < prev    next >
Encoding:
Text File  |  1997-09-13  |  1.1 KB  |  39 lines

  1.     
  2.     _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
  3.     
  4.          stepfun(x, y=<<see below>>, type="left")
  5.     
  6.     _A_r_g_u_m_e_n_t_s:
  7.     
  8.                 x:
  9.          either vectors or a list with components  named  x  and
  10.          y giving the locations of the jumps in the function.  x
  11.          must be in increasing order.
  12.     
  13.                 y:
  14.          either vectors or a list with components  named  x  and
  15.          y giving the locations of the jumps in the function.  x
  16.          must be in increasing order.
  17.     
  18.              type:
  19.          the string "left" for a left continuous  step  function
  20.          or "right" for a right continuous step function.  Only
  21.          the first character of the string is needed.
  22.     
  23.               Value:
  24.     
  25.               a list with the following components:
  26.     
  27.                 x:
  28.          a vector of the unique values in the input x with all
  29.          but one of the end values repeated.
  30.     
  31.                 y:
  32.          values of the step function taken from the input y.
  33.     
  34.          Description:
  35.     
  36.           Computes a left- or right-continuous  step  function
  37.          from (x,y) points.
  38.     
  39.