Markus Metz be1ced9bae r.random.cells: treat distance as minimum distance (#1797) 3 anos atrás
..
testsuite be1ced9bae r.random.cells: treat distance as minimum distance (#1797) 3 anos atrás
Makefile d6700ffb2c Update LIBES, DEPENDENCIES from linkage database 16 anos atrás
README db49180dd7 welcome to GRASS 7.0.svn 17 anos atrás
flag.c cef093c56b Don't include <grass/raster.h> where not needed 16 anos atrás
flag.h 158a6f2a5a bulk fixing of typos in comments (using tools/fix_typos.sh) 6 anos atrás
gasdev.c 5688d5f254 r.random.{surface|cells}: clean up 16 anos atrás
indep.c be1ced9bae r.random.cells: treat distance as minimum distance (#1797) 3 anos atrás
init.c be1ced9bae r.random.cells: treat distance as minimum distance (#1797) 3 anos atrás
local_proto.h 5688d5f254 r.random.{surface|cells}: clean up 16 anos atrás
main.c b8d4b5e4cb r.random.cells, r.random.surface: use G_drand48(), fixes https://trac.osgeo.org/grass/ticket/2496 7 anos atrás
r.random.cells.html 665be72774 r.random*/r.surf.* manuals: examples and screenshots added (#1542) 4 anos atrás
r_random_cells.png 665be72774 r.random*/r.surf.* manuals: examples and screenshots added (#1542) 4 anos atrás
random.c b8d4b5e4cb r.random.cells, r.random.surface: use G_drand48(), fixes https://trac.osgeo.org/grass/ticket/2496 7 anos atrás
ransurf.h b8d4b5e4cb r.random.cells, r.random.surface: use G_drand48(), fixes https://trac.osgeo.org/grass/ticket/2496 7 anos atrás

README

/****************************************************************************
*
* MODULE: r.random.cells
* AUTHOR(S): Charles Ehlschlaeger; National Center for Geographic
* Information and Analysis, University of California, Santa
* Barbara (original contributor)
* Markus Neteler
* Roberto Flor ,
* Brad Douglas ,
* Glynn Clements Markus Neteler (original contributor)
* Bernhard Reiter
* PURPOSE: generates a random sets of cells that are at least
* some distance apart
* COPYRIGHT: (C) 2000-2004 by the GRASS Development Team
*
* This program is free software under the GNU General Public
* License (>=v2). Read the file COPYING that comes with GRASS
* for details.
*
*****************************************************************************/

r.random.cells generates a random sets of cells that are at least
some distance apart. The cells are numbered from 1 to the numbers of
cells generated. Random cells will not be generated in areas masked off.

OPTIONS
-q
This flag prevents the program from sending a verbose description to standard
output of what the program is doing.

-output

Output map: Random cells. Each random cell has a unique non-zero cell
value ranging from 1 to the number of cells generated. The heuristic for
this algorithm is to randomly pick cells until there are no cells outside
of the chosen cell's buffer of radius \fIdistance\fR.

-distance
Input value(s) [default 0.0]: distance determines the minimum distance
the centers of the random cells will be apart.

-seed
Input value [default: random]: Specifies the random seed that
r.random.cells will use to generate the cells. If the random seed
is not given, then it will get a seed from the process ID number.

NOTES
The original purpose for this program was to generate independent random
samples of cells in a study area. The distancevalue is the amount
of spatial autocorrelation for the map being studied.