com.esri.arcgis.geoprocessing.tools.spatialstatisticstools
Class ClustersOutliers

java.lang.Object
  extended by com.esri.arcgis.geoprocessing.AbstractGPTool
      extended by com.esri.arcgis.geoprocessing.tools.spatialstatisticstools.ClustersOutliers
All Implemented Interfaces:
GPTool

public class ClustersOutliers
extends AbstractGPTool

Given a set of weighted features, identifies statistically significant hot spots, cold spots, and spatial outliers using the Anselin Local Moran's I statistic. The Cluster and Outlier Analysis (Anselin Local Morans I) tool is contained in the Spatial Statistics Tools tool box.

Usage tips:


Field Summary
 
Fields inherited from class com.esri.arcgis.geoprocessing.AbstractGPTool
vals
 
Constructor Summary
ClustersOutliers()
          Creates the Cluster and Outlier Analysis (Anselin Local Morans I) tool with defaults.
ClustersOutliers(java.lang.Object inputFeatureClass, java.lang.Object inputField, java.lang.Object outputFeatureClass, java.lang.String conceptualizationOfSpatialRelationships, java.lang.String distanceMethod, java.lang.String standardization)
          Creates the Cluster and Outlier Analysis (Anselin Local Morans I) tool with the required parameters.
 
Method Summary
 java.lang.Object getClusterOutlierType()
          Returns the Cluster-Outlier Type parameter of this tool (Read only).
 java.lang.String getConceptualizationOfSpatialRelationships()
          Returns the Conceptualization of Spatial Relationships parameter of this tool .
 double getDistanceBandOrThresholdDistance()
          Returns the Distance Band or Threshold Distance parameter of this tool .
 java.lang.String getDistanceMethod()
          Returns the Distance Method parameter of this tool .
 java.lang.Object getIndexFieldName()
          Returns the Index Field Name parameter of this tool (Read only).
 java.lang.Object getInputFeatureClass()
          Returns the Input Feature Class parameter of this tool .
 java.lang.Object getInputField()
          Returns the Input Field parameter of this tool .
 java.lang.Object getOutputFeatureClass()
          Returns the Output Feature Class parameter of this tool .
 java.lang.Object getProbabilityField()
          Returns the Probability Field parameter of this tool (Read only).
 java.lang.String getStandardization()
          Returns the Standardization parameter of this tool .
 java.lang.String getToolboxAlias()
          Returns the alias of the tool box containing this tool.
 java.lang.String getToolboxName()
          Returns the name of the tool box containing this tool.
 java.lang.String getToolName()
          Returns the name of this tool.
 java.lang.Object getWeightsMatrixFile()
          Returns the Weights Matrix File parameter of this tool .
 java.lang.Object getZScoreFieldName()
          Returns the ZScore Field Name parameter of this tool (Read only).
 void setConceptualizationOfSpatialRelationships(java.lang.String conceptualizationOfSpatialRelationships)
          Sets the Conceptualization of Spatial Relationships parameter of this tool .
 void setDistanceBandOrThresholdDistance(double distanceBandOrThresholdDistance)
          Sets the Distance Band or Threshold Distance parameter of this tool .
 void setDistanceMethod(java.lang.String distanceMethod)
          Sets the Distance Method parameter of this tool .
 void setInputFeatureClass(java.lang.Object inputFeatureClass)
          Sets the Input Feature Class parameter of this tool .
 void setInputField(java.lang.Object inputField)
          Sets the Input Field parameter of this tool .
 void setOutputFeatureClass(java.lang.Object outputFeatureClass)
          Sets the Output Feature Class parameter of this tool .
 void setStandardization(java.lang.String standardization)
          Sets the Standardization parameter of this tool .
 void setWeightsMatrixFile(java.lang.Object weightsMatrixFile)
          Sets the Weights Matrix File parameter of this tool .
 
Methods inherited from class com.esri.arcgis.geoprocessing.AbstractGPTool
getParameterValues, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClustersOutliers

public ClustersOutliers()
Creates the Cluster and Outlier Analysis (Anselin Local Morans I) tool with defaults.

Initializes the array of tool parameters with the default values specified when the tool was created.


ClustersOutliers

public ClustersOutliers(java.lang.Object inputFeatureClass,
                        java.lang.Object inputField,
                        java.lang.Object outputFeatureClass,
                        java.lang.String conceptualizationOfSpatialRelationships,
                        java.lang.String distanceMethod,
                        java.lang.String standardization)
Creates the Cluster and Outlier Analysis (Anselin Local Morans I) tool with the required parameters.

Initializes the array of tool parameters with the values as specified for the required parameters and with the default values for the other parameters.

Parameters:
inputFeatureClass - the feature class for which cluster/outlier analysis will be performed.
inputField - the numeric field to be evaluated.
outputFeatureClass - the output feature class to receive the results fields.
conceptualizationOfSpatialRelationships - specifies how spatial relationships among features are conceptualized.
distanceMethod - specifies how distances are calculated from each feature to neighboring features.
standardization - row standardization is recommended whenever the distribution of your features is potentially biased due to sampling design or an imposed aggregation scheme.
Method Detail

getInputFeatureClass

public java.lang.Object getInputFeatureClass()
Returns the Input Feature Class parameter of this tool . This parameter is the feature class for which cluster/outlier analysis will be performed. This is a required parameter.

Returns:
the Input Feature Class

setInputFeatureClass

public void setInputFeatureClass(java.lang.Object inputFeatureClass)
Sets the Input Feature Class parameter of this tool . This parameter is the feature class for which cluster/outlier analysis will be performed. This is a required parameter.

Parameters:
inputFeatureClass - the feature class for which cluster/outlier analysis will be performed.

getInputField

public java.lang.Object getInputField()
Returns the Input Field parameter of this tool . This parameter is the numeric field to be evaluated. This is a required parameter.

Returns:
the Input Field

setInputField

public void setInputField(java.lang.Object inputField)
Sets the Input Field parameter of this tool . This parameter is the numeric field to be evaluated. This is a required parameter.

Parameters:
inputField - the numeric field to be evaluated.

getOutputFeatureClass

public java.lang.Object getOutputFeatureClass()
Returns the Output Feature Class parameter of this tool . This parameter is the output feature class to receive the results fields. This is a required parameter.

Returns:
the Output Feature Class

setOutputFeatureClass

public void setOutputFeatureClass(java.lang.Object outputFeatureClass)
Sets the Output Feature Class parameter of this tool . This parameter is the output feature class to receive the results fields. This is a required parameter.

Parameters:
outputFeatureClass - the output feature class to receive the results fields.

getConceptualizationOfSpatialRelationships

public java.lang.String getConceptualizationOfSpatialRelationships()
Returns the Conceptualization of Spatial Relationships parameter of this tool . This parameter is specifies how spatial relationships among features are conceptualized. This is a required parameter.

Returns:
the Conceptualization of Spatial Relationships

setConceptualizationOfSpatialRelationships

public void setConceptualizationOfSpatialRelationships(java.lang.String conceptualizationOfSpatialRelationships)
Sets the Conceptualization of Spatial Relationships parameter of this tool . This parameter is specifies how spatial relationships among features are conceptualized. This is a required parameter.

Parameters:
conceptualizationOfSpatialRelationships - specifies how spatial relationships among features are conceptualized.

getDistanceMethod

public java.lang.String getDistanceMethod()
Returns the Distance Method parameter of this tool . This parameter is specifies how distances are calculated from each feature to neighboring features. This is a required parameter.

Returns:
the Distance Method

setDistanceMethod

public void setDistanceMethod(java.lang.String distanceMethod)
Sets the Distance Method parameter of this tool . This parameter is specifies how distances are calculated from each feature to neighboring features. This is a required parameter.

Parameters:
distanceMethod - specifies how distances are calculated from each feature to neighboring features.

getStandardization

public java.lang.String getStandardization()
Returns the Standardization parameter of this tool . This parameter is row standardization is recommended whenever the distribution of your features is potentially biased due to sampling design or an imposed aggregation scheme. This is a required parameter.

Returns:
the Standardization

setStandardization

public void setStandardization(java.lang.String standardization)
Sets the Standardization parameter of this tool . This parameter is row standardization is recommended whenever the distribution of your features is potentially biased due to sampling design or an imposed aggregation scheme. This is a required parameter.

Parameters:
standardization - row standardization is recommended whenever the distribution of your features is potentially biased due to sampling design or an imposed aggregation scheme.

getDistanceBandOrThresholdDistance

public double getDistanceBandOrThresholdDistance()
Returns the Distance Band or Threshold Distance parameter of this tool . This parameter is specifies a cutoff distance for Inverse Distance and Fixed Distance options. Features outside the specified cutoff for a target feature are ignored in analyses for that feature. However, for Zone of Indifference, the influence of features outside the given distance is reduced with distance, while those inside the distance threshold are equally considered. The value entered should match that of the output coordinate system. for the Inverse Distance conceptualizations of spatial relationships, a value of 0 indicates that no threshold distance is applied; when this parameter is left blank, a default threshold value is computed and applied. This default value is the Euclidean distance that ensures every feature has at least one neighbor. this parameter has no effect when Polygon Contiguity or Get Spatial Weights From File spatial conceptualizations are selected. This is an optional parameter.

Returns:
the Distance Band or Threshold Distance

setDistanceBandOrThresholdDistance

public void setDistanceBandOrThresholdDistance(double distanceBandOrThresholdDistance)
Sets the Distance Band or Threshold Distance parameter of this tool . This parameter is specifies a cutoff distance for Inverse Distance and Fixed Distance options. Features outside the specified cutoff for a target feature are ignored in analyses for that feature. However, for Zone of Indifference, the influence of features outside the given distance is reduced with distance, while those inside the distance threshold are equally considered. The value entered should match that of the output coordinate system. for the Inverse Distance conceptualizations of spatial relationships, a value of 0 indicates that no threshold distance is applied; when this parameter is left blank, a default threshold value is computed and applied. This default value is the Euclidean distance that ensures every feature has at least one neighbor. this parameter has no effect when Polygon Contiguity or Get Spatial Weights From File spatial conceptualizations are selected. This is an optional parameter.

Parameters:
distanceBandOrThresholdDistance - specifies a cutoff distance for Inverse Distance and Fixed Distance options. Features outside the specified cutoff for a target feature are ignored in analyses for that feature. However, for Zone of Indifference, the influence of features outside the given distance is reduced with distance, while those inside the distance threshold are equally considered. The value entered should match that of the output coordinate system. for the Inverse Distance conceptualizations of spatial relationships, a value of 0 indicates that no threshold distance is applied; when this parameter is left blank, a default threshold value is computed and applied. This default value is the Euclidean distance that ensures every feature has at least one neighbor. this parameter has no effect when Polygon Contiguity or Get Spatial Weights From File spatial conceptualizations are selected.

getWeightsMatrixFile

public java.lang.Object getWeightsMatrixFile()
Returns the Weights Matrix File parameter of this tool . This parameter is the path to a file containing spatial weights that define spatial relationships among features. This is an optional parameter.

Returns:
the Weights Matrix File

setWeightsMatrixFile

public void setWeightsMatrixFile(java.lang.Object weightsMatrixFile)
Sets the Weights Matrix File parameter of this tool . This parameter is the path to a file containing spatial weights that define spatial relationships among features. This is an optional parameter.

Parameters:
weightsMatrixFile - the path to a file containing spatial weights that define spatial relationships among features.

getIndexFieldName

public java.lang.Object getIndexFieldName()
Returns the Index Field Name parameter of this tool (Read only). This is an derived parameter.

Returns:
the Index Field Name

getZScoreFieldName

public java.lang.Object getZScoreFieldName()
Returns the ZScore Field Name parameter of this tool (Read only). This is an derived parameter.

Returns:
the ZScore Field Name

getProbabilityField

public java.lang.Object getProbabilityField()
Returns the Probability Field parameter of this tool (Read only). This is an derived parameter.

Returns:
the Probability Field

getClusterOutlierType

public java.lang.Object getClusterOutlierType()
Returns the Cluster-Outlier Type parameter of this tool (Read only). This is an derived parameter.

Returns:
the Cluster-Outlier Type

getToolName

public java.lang.String getToolName()
Returns the name of this tool.

Returns:
the tool name

getToolboxName

public java.lang.String getToolboxName()
Returns the name of the tool box containing this tool.

Returns:
the tool box name

getToolboxAlias

public java.lang.String getToolboxAlias()
Returns the alias of the tool box containing this tool.

Returns:
the tool box alias