Description Usage Arguments Value Examples
View source: R/table_generation_functions.R
Return atomic rotation group 1 for seed i (1000 possible values)
1 | sampleruleS(i0)
|
i |
An integer between 1 and 1000 |
The atomic rotation group 1 for seed i
1 2 3 4 5 6 7 8 | sampleruleS(1,1:160,1)
identical(sampleruleS(i0=1),samplerule(i=1,j=1:100,m=1))
identical(sampleruleS(i0=16),samplerule(i=1,1:100,m=16))
(checkrule<-function(){
i=sample(1:1000,1);m=sample(1:85,1);h=sample(1:8,1);
return(list(i=i,m=m,h=h,check=identical(sampleruleS(i0=i+(m-1)+c(0:3,12:15)[9-h]),samplerule(i,(8-h)*100+(1:100),m))))})()
identical((function(i,m){c(sapply((m+i-2)+c(1:4,13:16),sampleruleS))})(1,1),samplerule(1,1:800,1))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.