Rice                  package:VGAM                  R Documentation

_T_h_e _R_i_c_e _D_i_s_t_r_i_b_u_t_i_o_n

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

     Density and random generation for the Rician distribution.

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

     drice(x, vee, sigma, log=FALSE)
     rrice(n, vee, sigma)

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

       x: vector of quantiles.

       n: number of observations. Must be a positive integer of length
          1.

vee, sigma: See 'riceff'. 

     log: Logical. If 'log=TRUE' then the logarithm of the density is
          returned.

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

     See 'riceff', the 'VGAM' family function for estimating the two
     parameters, for the formula of the probability density function
     and other details.

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

     'drice' gives the density, 'rrice' generates random deviates.

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

     T. W. Yee

_S_e_e _A_l_s_o:

     'riceff'.

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

     ## Not run: 
     x = seq(0.01, 7, len=201)
     plot(x, drice(x, vee=0, sigma=1), type="n", las=1,, ylab="",
          main="Density of Rice distribution for various values of v")
     sigma = 1; vee = c(0,0.5,1,2,4)
     for(ii in 1:length(vee)) lines(x, drice(x, vee[ii], sigma), col=ii)
     legend(x=5, y=0.6, legend=as.character(vee),
            col=1:length(vee), lty=1)
     ## End(Not run)

