public class CommonUtility
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CommonUtility.AWSTreeComparator |
Constructor and Description |
---|
CommonUtility() |
Modifier and Type | Method and Description |
---|---|
protected static java.lang.Double |
getDominantHeightOrDiameter(java.util.Collection<AWSTree> trees,
double areaFactor,
boolean heightRequested)
This static method returns either the dominant height or the dominant diameter
|
protected static double |
multiplyTwoArraysOfDouble(double[] array1,
double[] array2) |
protected static double multiplyTwoArraysOfDouble(double[] array1, double[] array2) throws java.lang.Exception
java.lang.Exception
protected static java.lang.Double getDominantHeightOrDiameter(java.util.Collection<AWSTree> trees, double areaFactor, boolean heightRequested) throws java.lang.Exception
trees
- a collection of Tree objectsareaFactor
- the area factorheightRequested
- a boolean, true means dominant height is requested while false requests the dominant diameterjava.lang.Exception