[Mattice-commits] r82 - pkg/R

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Fri Dec 12 08:02:25 CET 2008


Author: andrew_hipp
Date: 2008-12-12 08:02:23 +0100 (Fri, 12 Dec 2008)
New Revision: 82

Modified:
   pkg/R/regimes.R
Log:
recursive function pseudocode

Modified: pkg/R/regimes.R
===================================================================
--- pkg/R/regimes.R	2008-12-12 03:46:45 UTC (rev 81)
+++ pkg/R/regimes.R	2008-12-12 07:02:23 UTC (rev 82)
@@ -152,11 +152,12 @@
 
 #regMatRec <- function(n, maxNodes, dat) {
 #  for (i in 1:n) {
-#    call(regMatRec) with n = n - 1
-#    for (j in 1:dim(dat)[1]) {
-#      do something!
-#      }
-#    }
+#    place a 1 in the ith position
+#    temp = regMatRec on the zeros, thus with n = n-1, maxNodes = maxNodes - 1
+#    make a matrix of the results, with the temp and the ith-position 1 concatenated
+#  }
+#  make an all-zero row
+#  return results
 #}
     
 



More information about the Mattice-commits mailing list