scaleX             package:orthopolynom             R Documentation

_S_c_a_l_e _v_a_l_u_e_s _f_r_o_m [_a,_b] _t_o [_u._v]

_D_e_s_c_r_i_p_t_i_o_n:

     This function returns a vector of values that have been mapped
     from the interval [a,b] to the interval [u.v].

_U_s_a_g_e:

     scaleX(x, a = min(x, na.rm = TRUE), b = max(x, na.rm = TRUE), u, v)

_A_r_g_u_m_e_n_t_s:

       x: A numerical vector of values to be mapped into a target
          interval 

       a: A numerical lower bound for the domain interval with min(x)
          as the default value 

       b: A numerical upper bound for the domain interval with max(x)
          as the default value 

       u: A numerical lower bound for the target interval 

       v: A numerical upper bound for the target interval 

_D_e_t_a_i_l_s:

     Target lower and/or upper bounds can be -infty and infty,
     respectively. This accomodates finite target intervals,
     semi-infinite target intervals and infinite target intervals.

_V_a_l_u_e:

     A vector of transformed values with four attributes.  The first
     attribute is called "a" and it is the domain interval lower bound.
      The second attribute is called "b" and it is the domain interval
     upper bound. The third attribute is called "u" and it is the
     target interval lower bound.  The fourth attribute is called "v"
     and it is the target interval upper bound.

_A_u_t_h_o_r(_s):

     Frederick Novomestky fnovomes@poly.edu, Gregor Gorjanc
     gregor.gorjanc@bfro-uni-lj.si

_R_e_f_e_r_e_n_c_e_s:

     Seber, G. A. F. (1997) Linear Regression Analysis, New York.

_E_x_a_m_p_l_e_s:

     x <- rnorm( 1000, 0, 10 )
     y0 <- scaleX( x, u=0 , v=1 )
     y1 <- scaleX( x, u=-1, v=1 )
     y2 <- scaleX( x, u=-Inf, v=0 )
     y3 <- scaleX( x, u=0, v=Inf )
     y4 <- scaleX( x, u=-Inf, v=Inf )

