ClassMetrics
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
cpc.sau.lulctools
Class ClassMetrics
java.lang.Objectcpc.sau.lulctools.ClassMetrics
public class ClassMetrics
- extends java.lang.Object
Contains methods for calculating class-lever pattern metrics on a landscape. The metrics are:
Number of Pixels: the total number of cells within the same class
Total Area: the total area comprised by the class
Percentage of Landscape: the percentage of the landscape comprised by the class
Number of Patches: the number of patches in the class
Mean Patch Size: the average patch size in the class
Median Patch Size: the median patch size in the class
Minimum Patch Size: the minimum patch size in the class
Maximum Patch Size: the maximum patch size in the class
Standand Deviational Patch Size: the standard deviation of patches in the class
Largest Patch Index: the percentage of the landscape comprised by the largest
patch in the class
Patch Density: the density of the patches in the class on the landscape
Notes: In this documentation, the term class is used to refer to a land use type and the term patch refers to a parcel. All metrics are calcultated in meters or hectares. If the units of the input data are different, it will be necessary to modify the code accordingly.
| Constructor Summary | |
|---|---|
ClassMetrics(java.util.ArrayList<LulcCell> coverList,
java.lang.String type)
Create an arraylist of all patches in the class on the landscape |
|
| Method Summary | |
|---|---|
double |
classLargestPatchIndex(java.util.ArrayList<LulcCell> coverList,
java.lang.String type)
Calculates the Largest Patch Index of the class. |
double |
classMaxPatchSize()
Calculates the maximum patch size in the class |
double |
classMeanPatchSize()
Calculates the mean patch size of the class |
double |
classMedianPatchSize()
Calculates the median patch size of the class |
double |
classMiniPatchSize()
Calculates the minimum patch size in the class |
int |
classNumberOfPatches()
Calculates the number of patches in the class |
int |
classNumberOfPixels()
Calculates the number of pixels (i.e. |
double |
classPatchDensity(java.util.ArrayList<LulcCell> coverList,
java.lang.String type)
Calculates the patch density of the class. |
double |
classPatchStd()
Calculates the standand deviation of the patches in the class of interest |
double |
classPercentLand()
Calculates the percentage of the landscape covered by the class |
double |
classTotalArea()
Calculates the total area of the class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
ClassMetrics
public ClassMetrics(java.util.ArrayList<LulcCell> coverList, java.lang.String type)
- Create an arraylist of all patches in the class on the landscape
- Parameters:
coverList- contains all LulcCell objects on the entire landscapetype- LULC class(i.e. land use type)
| Method Detail |
|---|
classNumberOfPixels
public int classNumberOfPixels()
- Calculates the number of pixels (i.e. cells or LulcCell objects) in a class.
- Returns:
- the number of pixels (i.e. cells or LulcCell objects) in the class
classTotalArea
public double classTotalArea()
- Calculates the total area of the class.
- Returns:
- the area comprised by the class, in hectares.
classPercentLand
public double classPercentLand()
- Calculates the percentage of the landscape covered by the class
- Returns:
- the percentage of the landscape covered by the class
classNumberOfPatches
public int classNumberOfPatches()
- Calculates the number of patches in the class
- Returns:
- the number of separate patches in the class of interest
classMeanPatchSize
public double classMeanPatchSize()
- Calculates the mean patch size of the class
- Returns:
- the mean size, in hectares, of the patches in the class of interest
classMedianPatchSize
public double classMedianPatchSize()
- Calculates the median patch size of the class
- Returns:
- the median patch size, in hectares, in the class of interest
classMiniPatchSize
public double classMiniPatchSize()
- Calculates the minimum patch size in the class
- Returns:
- the minimum patch size, in hectares, in the class of interest
classMaxPatchSize
public double classMaxPatchSize()
- Calculates the maximum patch size in the class
- Returns:
- the maximum patch size, in hectares, in the class of interest
classPatchStd
public double classPatchStd()
- Calculates the standand deviation of the patches in the class of interest
- Returns:
- the standand deviation of the patches in the class of interest
classLargestPatchIndex
public double classLargestPatchIndex(java.util.ArrayList<LulcCell> coverList, java.lang.String type)
- Calculates the Largest Patch Index of the class. It is equal to (max(a)/A)*100,
where max(a) is the area of the largest patch in the class and A is the area of
the entire landscape.
- Returns:
- the percentage of the landscape comprised by the largest patch
classPatchDensity
public double classPatchDensity(java.util.ArrayList<LulcCell> coverList, java.lang.String type)
- Calculates the patch density of the class. It is equal to n/A, where
n is the number of patches in the class and A is the area of thr entire landscape.
- Returns:
- The number of patches per hectare of the class of interest
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

cpc.sau.lulctools.ClassMetrics

