powered by
Given the number of states, this function returns all of the pairs of indexes corresponding to those states.
Rcpp_combn_zerostart(n_to_choose_from, k_to_choose, maxlim = 1e+07)
N in N choose K
K in N choose K
To avoid memory overruns, the number of combinations can be no larger than maxlim (default: 1e+07)
maxlim
outarray an integer matrix with outarray rows; the number of columns is the number of combinations.
outarray
The C++ version is MUCH faster than the plain-R version.
rcpp_calc_anclikes_sp, rcpp_mult2probvect, rcpp_convolve #bibliography /Dropbox/_njm/__packages/cladoRcpp_setup/cladoRcpp_refs.bib @cite Matzke_2013 @cite Matzke_2014
rcpp_calc_anclikes_sp
rcpp_mult2probvect
rcpp_convolve
# NOT RUN { Rcpp_combn_zerostart(n_to_choose_from=4, k_to_choose=2, maxlim=1e+07) Rcpp_combn_zerostart(n_to_choose_from=4, k_to_choose=3, maxlim=1e+07) # }
Run the code above in your browser using DataLab