SAGA-GIS Tool Library Documentation (v9.2.0)

Tool K-Means Clustering for Grids

This tool implements the K-Means cluster analysis for grids in two variants, iterative minimum distance (Forgy 1965) and hill climbing (Rubin 1967).


References


Parameters

 NameTypeIdentifierDescriptionConstraints
InputGridsgrid list, inputGRIDS--
OutputClustersgrid, outputCLUSTER--
Statisticstable, outputSTATISTICS--
OptionsGrid Systemgrid systemPARAMETERS_GRID_SYSTEM--
MethodchoiceMETHOD-Available Choices:
[0] Iterative Minimum Distance (Forgy 1965)
[1] Hill-Climbing (Rubin 1967)
[2] Combined Minimum Distance / Hillclimbing
Default: 1
Clustersinteger numberNCLUSTERNumber of clustersMinimum: 2
Default: 10
Maximum Iterationsinteger numberMAXITERmaximum number of iterations, ignored if set to zero (default)Minimum: 0
Default: 10
NormalisebooleanNORMALISEAutomatically normalise grids by standard deviation before clustering.Default: 0
Update Colors from Featuresboolean, GUIRGB_COLORSUse the first three features in list to obtain blue, green, red components for class colour in look-up table.Default: 0
Start PartitionchoiceINITIALIZE-Available Choices:
[0] random
[1] periodical
[2] keep values
Default: 0
Old VersionbooleanOLDVERSIONslower but memory savingDefault: 0
Update Viewboolean, GUIUPDATEVIEW-Default: 1

Command-line

Usage: saga_cmd imagery_classification 1 [-GRIDS <str>] [-CLUSTER <str>] [-STATISTICS <str>] [-METHOD <str>] [-NCLUSTER <num>] [-MAXITER <num>] [-NORMALISE <str>] [-INITIALIZE <str>] [-OLDVERSION <str>]
  -GRIDS:<str>     	Grids
	grid list, input
  -CLUSTER:<str>   	Clusters
	grid, output
  -STATISTICS:<str>	Statistics
	table, output
  -METHOD:<str>    	Method
	choice
	Available Choices:
	[0] Iterative Minimum Distance (Forgy 1965)
	[1] Hill-Climbing (Rubin 1967)
	[2] Combined Minimum Distance / Hillclimbing
	Default: 1
  -NCLUSTER:<num>  	Clusters
	integer number
	Minimum: 2
	Default: 10
  -MAXITER:<num>   	Maximum Iterations
	integer number
	Minimum: 0
	Default: 10
  -NORMALISE:<str> 	Normalise
	boolean
	Default: 0
  -INITIALIZE:<str>	Start Partition
	choice
	Available Choices:
	[0] random
	[1] periodical
	[2] keep values
	Default: 0
  -OLDVERSION:<str>	Old Version
	boolean
	Default: 0