public class AllometryCalculator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static double |
NumberOfTreesHaForDominantFeatures |
Constructor and Description |
---|
AllometryCalculator() |
Modifier and Type | Method and Description |
---|---|
double |
getBasalAreaM2(java.util.Collection<? extends LightAllometryCalculableTree> trees)
This method computes the basal area of a collection of trees.
|
double |
getCommercialVolumeM3(java.util.Collection<? extends AllometryCalculableTree> trees)
This method computes the commercial volume for a collection of commercial trees.
|
double |
getDominantDiameterCM(java.util.Collection<? extends AllometryCalculableTree> trees,
double plotAreaHa,
boolean weighted)
This method returns the dominant diameter for the trees contained in the trees collection.
|
double |
getDominantHeightM(java.util.Collection<? extends AllometryCalculableTree> trees,
double plotAreaHa,
boolean weighted)
This method returns the dominant height for the trees contained in the trees collection.
|
double |
getMeanQuadraticDiameterCm(java.util.Collection<? extends LightAllometryCalculableTree> trees)
This method returns the mean quadratic diameter for a collection of trees.
|
double |
getNumberOfTrees(java.util.Collection<? extends LightAllometryCalculableTree> trees)
This method returns the number of trees for a collection of trees.
|
double |
getTotalVolumeM3(java.util.Collection<? extends AllometryCalculableTree> trees)
This method computes the above ground volume for a collection of trees.
|
java.util.Collection<LightAllometryCalculableTree> |
getTreesLarger(java.util.Collection<? extends LightAllometryCalculableTree> trees,
double threshold)
This method returns a collection of CalculableTree objects that have a dbh greater than a particular
threshold.
|
public static final double NumberOfTreesHaForDominantFeatures
public double getMeanQuadraticDiameterCm(java.util.Collection<? extends LightAllometryCalculableTree> trees)
trees
- a Collection object that should contain instances of LightAllometryCalculableTreepublic double getBasalAreaM2(java.util.Collection<? extends LightAllometryCalculableTree> trees)
trees
- a Collection object that should contain instances of LightAllometryCalculableTreepublic double getNumberOfTrees(java.util.Collection<? extends LightAllometryCalculableTree> trees)
trees
- a Collection object that should contain instances of LightAllometryCalculableTreepublic java.util.Collection<LightAllometryCalculableTree> getTreesLarger(java.util.Collection<? extends LightAllometryCalculableTree> trees, double threshold)
trees
- a Collection object that should contain instances of AllometryCalculableTreethreshold
- the dbh threshold in cm (double)public double getCommercialVolumeM3(java.util.Collection<? extends AllometryCalculableTree> trees)
trees
- a Collection object that should contains AllometryCalculableTree instancespublic double getTotalVolumeM3(java.util.Collection<? extends AllometryCalculableTree> trees)
trees
- a Collection object that should contains AllometryCalculableTree instancespublic double getDominantHeightM(java.util.Collection<? extends AllometryCalculableTree> trees, double plotAreaHa, boolean weighted)
trees
- the Collection object that contains instances of AllometryCalculableTreeplotAreaHa
- the area over which the trees were measured in ha (double)weighted
- true to enable the plot weighting or false otherwisepublic double getDominantDiameterCM(java.util.Collection<? extends AllometryCalculableTree> trees, double plotAreaHa, boolean weighted)
trees
- the Collection object that contains instances of AllometryCalculableTreeplotAreaHa
- the area over which the trees were measured in ha (double)weighted
- true to enable the plot weighting or false otherwise