simplifyr-methods           package:distr           R Documentation

_M_e_t_h_o_d_s _f_o_r _F_u_n_c_t_i_o_n _s_i_m_p_l_i_f_y_r _i_n _P_a_c_k_a_g_e '_d_i_s_t_r'

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

     simplifyr-methods

_M_e_t_h_o_d_s:


     _s_i_m_p_l_i_f_y_r 'signature(.Object = "UnivariateDistribution")': After
          several transformations of a given distribution it may take
          quite  a long time  to generate random numbers from the
          resulting distribution. simplifyr generates a certain number,
           by default 10^5, of random numbers once. This pool of random
          numbers forms the basis for further uses of the  r-method.
          That is, random numbers are generated by sampling with
          replacement out of this pool. 

_N_o_t_e:

     If you want to generate many random numbers, you should use
     simplifyr with a big size to be sure, that your numbers are really
     random.

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

     'Distribution-class'

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

     F <- ( Norm() + Binom() + Pois() + Exp() ) * 2 - 10
     system.time(r(F)(10^6))
     simplifyr(F, size = 10^6)
     system.time(r(F)(10^6))

