I would think that ?expand.grid with appropriate choice of coordinates would be the best tool for defining the mesh. As for edge effects, doesn't that depend on the (unnamed) algorithms you intend to apply?
As for "spargraphs"... findFn from package sos could not find it, and I have never heard of it... I recommend using a web search engine, as I doubt it has anything to do with R. --------------------------------------------------------------------------- Jeff Newmiller The ..... ..... Go Live... DCN:<jdnew...@dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...1k --------------------------------------------------------------------------- Sent from my phone. Please excuse my brevity. On August 25, 2015 4:15:15 AM PDT, PO SU <rhelpmaill...@163.com> wrote: > > >Dear expeRts, > i want to know how to generate the 2 dimensional mesh (i.e. grid >on the torus) of size n, The grid mesh (with wrap around of boundaries >into a torus to avoid edge-effects). and the hyper-cube which is the >log2(n)-dimensional grid of size n. Does anyone happen to know it? >BTW, how to find "spargraphs" this package, i find almost everywhere i >know but still can not find it in R, is it a matlab package or other >language package? Tks! > > >-- > >PO SU >mail: desolato...@163.com >Majored in Statistics from SJTU >______________________________________________ >R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide >http://www.R-project.org/posting-guide.html >and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.