Rechercher une page de manuel
r.regression.line
Langue: en
Version: 371767 (fedora - 01/12/10)
Section: 1 (Commandes utilisateur)
NAME
r.regression.line - Calculates linear regression from two raster maps: y = a + b*xKEYWORDS
raster, statisticsSYNOPSIS
r.regression.liner.regression.line help
r.regression.line [-g] map1=string map2=string [output=string] [--verbose] [--quiet]
Flags:
- -g
Print in shell script style- --verbose
Verbose module output- --quiet
Quiet module output
Parameters:
- map1=string
Map for x coefficient- map2=string
Map for y coefficient- output=string
ASCII file for storing regression coefficients (output to screen if file not specified).
DESCRIPTION
r.regression.line Calculates linear regression from two raster maps, according to the formula y = a + b*x, where x and y represent raster maps. Optionally saves regression coefficients to an ASCII file. The result includes the following coefficients: offset/intercept (a) and gain/slope (b), residuals (R), number of elements (N), means (medX, medY), standard deviations (sdX, sdY), and the F test for testing the significance of the regression model as a whole (F).EXAMPLE
Comparison of the old and the new DEM in Spearfish:g.region rast=elevation.10m -p
r.regression.line map1=elevation.dem map2=elevation.10m
Using the script style flag AND eval to make results available in the shell:
g.region rast=elevation.10m -p
eval `r.regression.line -g map1=elevation.dem map2=elevation.10m`
echo $a
479.615
echo $b
0.645631
echo $R
0.804441
AUTHOR
Dr. Agustin Lobo - alobo at ija.csic.esUpdated to GRASS 5.7 Michael Barton, Arizona State University
Script style output Markus Neteler
Last changed: $Date: 2007-12-17 14:53:55 +0100 (Mon, 17 Dec 2007) $
Full index
© 2003-2008 GRASS Development Team
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre