public class FrenchHDRelationship2014InternalPredictor extends HDRelationshipPredictor<FrenchHDRelationship2014Stand,FrenchHDRelationship2014Tree> implements FertilityClassEmulator, FrenchHeightPredictor<FrenchHDRelationship2014Stand,FrenchHDRelationship2014Tree>
HDRelationshipPredictor.GaussianErrorTermForHeight, HDRelationshipPredictor.RegressionElements
REpiceaPredictor.CruiseLine, REpiceaPredictor.ErrorTermGroup, REpiceaPredictor.IntervalNestedInPlotDefinition
FertilityClassEmulator.FertilityClass
FrenchHeightPredictor.FrenchHeightPredictorVersion
observedHeights
DefaultZeroIndex, isRandomEffectsVariabilityEnabled, isResidualVariabilityEnabled, listeners, oXVector
isParametersVariabilityEnabled
Modifier | Constructor and Description |
---|---|
protected |
FrenchHDRelationship2014InternalPredictor(boolean isParameterVariabilityEnabled,
boolean isRandomEffectVariabilityEnabled,
boolean isResidualVariabilityEnabled,
FrenchHDRelationshipTree.FrenchHdSpecies species) |
Modifier and Type | Method and Description |
---|---|
void |
emulateFertilityClass(FertilityClassEmulator.FertilityClass fertilityClass)
This method sets the fertility class.
|
protected HDRelationshipPredictor.RegressionElements |
fixedEffectsPrediction(FrenchHDRelationship2014Stand stand,
FrenchHDRelationship2014Tree tree,
Matrix beta)
This method computes the fixed effect prediction and put the prediction, the Z vector,
and the species name into m_oRegressionOutput member.
|
Estimate<? extends StandardGaussianDistribution> |
getBlupsForThisSubject(FrenchHDRelationship2014Stand stand)
Returns the estimated blups for the plot.
|
protected java.util.Map<FertilityClassEmulator.FertilityClass,TruncatedGaussianEstimate> |
getFertilityClassMap() |
FrenchHDRelationshipTree.FrenchHdSpecies |
getSpecies()
Returns the species for the internal species-specific height predictor.
|
protected java.util.Collection<FrenchHDRelationship2014Tree> |
getTreesFromStand(FrenchHDRelationship2014Stand stand)
This method selects the trees from which the blups must be calculated.
|
protected void |
init()
This method reads all the parameters in .csv files and stores the estimates into members defaultBeta, defaultResidualError,
and defaultRandomEffects.
|
protected void |
predictHeightRandomEffects(FrenchHDRelationship2014Stand stand)
This method computes the best linear unbiased predictors of the random effects
|
protected void |
setDefaultRandomEffects(HierarchicalLevel level,
Estimate<? extends StandardGaussianDistribution> estimate) |
protected void |
setEffectList(Matrix mat) |
protected void |
setParameterEstimates(ModelParameterEstimates defaultBeta) |
protected void |
setResidualVariance(Matrix sigma2) |
blupImplementation, getErrorGroup, predictHeightM, residualImplementation, setSpecificResiduals, wasThisTreeInitiallyMeasured
addModelBasedSimulatorListener, doBlupsExistForThisSubject, doesThisSubjectHaveResidualErrorTerm, doRandomDeviatesExistForThisSubject, fireModelBasedSimulatorEvent, fireRandomEffectDeviateGeneratedEvent, getBlupsForThisSubject, getCruiseLineForThisSubject, getDefaultRandomEffects, getDefaultRandomEffects, getDefaultResidualError, getGaussianErrorTerms, getIntervalNestedInPlotDefinition, getParametersForThisRealization, getRandomEffectsForThisSubject, getResidualError, getResidualErrorForThisSubject, getSubjectPlusMonteCarloSpecificId, getSubjectPlusMonteCarloSpecificId, hasSubjectBeenTestedForBlups, recordSubjectTestedForBlups, removeModelBasedSimulatorListener, setBlupsForThisSubject, setDefaultResidualError, setDeviatesForRandomEffectsOfThisSubject, simulateDeviatesForRandomEffectsOfThisSubject
getParameterEstimates
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
predictHeightM
protected FrenchHDRelationship2014InternalPredictor(boolean isParameterVariabilityEnabled, boolean isRandomEffectVariabilityEnabled, boolean isResidualVariabilityEnabled, FrenchHDRelationshipTree.FrenchHdSpecies species)
protected java.util.Map<FertilityClassEmulator.FertilityClass,TruncatedGaussianEstimate> getFertilityClassMap()
protected void setDefaultRandomEffects(HierarchicalLevel level, Estimate<? extends StandardGaussianDistribution> estimate)
setDefaultRandomEffects
in class REpiceaPredictor
protected void setParameterEstimates(ModelParameterEstimates defaultBeta)
setParameterEstimates
in class REpiceaPredictor
public void emulateFertilityClass(FertilityClassEmulator.FertilityClass fertilityClass)
emulateFertilityClass
in interface FertilityClassEmulator
fertilityClass
- a FertilityClass enumprotected void predictHeightRandomEffects(FrenchHDRelationship2014Stand stand)
HDRelationshipPredictor
predictHeightRandomEffects
in class HDRelationshipPredictor<FrenchHDRelationship2014Stand,FrenchHDRelationship2014Tree>
stand
- a HeightableStand instanceprotected void setResidualVariance(Matrix sigma2)
protected void setEffectList(Matrix mat)
protected HDRelationshipPredictor.RegressionElements fixedEffectsPrediction(FrenchHDRelationship2014Stand stand, FrenchHDRelationship2014Tree tree, Matrix beta)
fixedEffectsPrediction
in class HDRelationshipPredictor<FrenchHDRelationship2014Stand,FrenchHDRelationship2014Tree>
stand
- a HeightableStand instancetree
- a HeightableTree instancebeta
- a Matrix that contains the parameterspublic Estimate<? extends StandardGaussianDistribution> getBlupsForThisSubject(FrenchHDRelationship2014Stand stand)
FrenchHeightPredictor
getBlupsForThisSubject
in interface FrenchHeightPredictor<FrenchHDRelationship2014Stand,FrenchHDRelationship2014Tree>
stand
- a HDRelationshipStand instance that stands for the plot.protected java.util.Collection<FrenchHDRelationship2014Tree> getTreesFromStand(FrenchHDRelationship2014Stand stand)
HDRelationshipPredictor
getTreesFromStand
in class HDRelationshipPredictor<FrenchHDRelationship2014Stand,FrenchHDRelationship2014Tree>
stand
- a Stand instanceprotected void init()
REpiceaPredictor
init
in class REpiceaPredictor
public FrenchHDRelationshipTree.FrenchHdSpecies getSpecies()
FrenchHeightPredictor
getSpecies
in interface FrenchHeightPredictor<FrenchHDRelationship2014Stand,FrenchHDRelationship2014Tree>