public class MathildeRecruitmentNumberPredictor extends REpiceaPredictor
REpiceaPredictor.CruiseLine, REpiceaPredictor.ErrorTermGroup, REpiceaPredictor.IntervalNestedInPlotDefinition
Modifier and Type | Field and Description |
---|---|
static double |
REFERENCE_AREA_HA |
DefaultZeroIndex, isRandomEffectsVariabilityEnabled, isResidualVariabilityEnabled, listeners, oXVector
isParametersVariabilityEnabled
Modifier | Constructor and Description |
---|---|
|
MathildeRecruitmentNumberPredictor(boolean isVariabilityEnabled)
Constructor
|
protected |
MathildeRecruitmentNumberPredictor(boolean isParameterVariabilityEnabled,
boolean isResidualVariabilityEnabled) |
Modifier and Type | Method and Description |
---|---|
protected double |
getFalseZeroProbability(Matrix betaZero,
MathildeRecruitmentStand stand,
MathildeTreeSpeciesProvider.MathildeTreeSpecies species) |
protected Matrix |
getMarginalPredictionsForThisStandAndSpecies(MathildeRecruitmentStand stand,
MathildeTreeSpeciesProvider.MathildeTreeSpecies species,
int resolution,
boolean isResidualVariabilityEnabled)
This method returns the marginal prediction for a single species.
|
protected double |
getNegativeBinomialMean(Matrix betaCount,
MathildeRecruitmentStand stand,
MathildeTreeSpeciesProvider.MathildeTreeSpecies species) |
protected void |
init()
This method reads all the parameters in .csv files and stores the estimates into members defaultBeta, defaultResidualError,
and defaultRandomEffects.
|
Matrix |
predictNumberOfRecruits(MathildeRecruitmentStand stand)
This method returns the number of recruits for each species.
|
addModelBasedSimulatorListener, doBlupsExistForThisSubject, doesThisSubjectHaveResidualErrorTerm, doRandomDeviatesExistForThisSubject, fireModelBasedSimulatorEvent, fireRandomEffectDeviateGeneratedEvent, getBlupsForThisSubject, getCruiseLineForThisSubject, getDefaultRandomEffects, getDefaultRandomEffects, getDefaultResidualError, getGaussianErrorTerms, getIntervalNestedInPlotDefinition, getParametersForThisRealization, getRandomEffectsForThisSubject, getResidualError, getResidualErrorForThisSubject, getSubjectPlusMonteCarloSpecificId, getSubjectPlusMonteCarloSpecificId, hasSubjectBeenTestedForBlups, recordSubjectTestedForBlups, removeModelBasedSimulatorListener, setBlupsForThisSubject, setDefaultRandomEffects, setDefaultResidualError, setDeviatesForRandomEffectsOfThisSubject, setParameterEstimates, simulateDeviatesForRandomEffectsOfThisSubject
getParameterEstimates
public static final double REFERENCE_AREA_HA
public MathildeRecruitmentNumberPredictor(boolean isVariabilityEnabled)
isVariabilityEnabled
- true to enable the stochastic variability.protected MathildeRecruitmentNumberPredictor(boolean isParameterVariabilityEnabled, boolean isResidualVariabilityEnabled)
protected void init()
REpiceaPredictor
init
in class REpiceaPredictor
public Matrix predictNumberOfRecruits(MathildeRecruitmentStand stand)
stand
- a MathildeRecruitmentStand instanceprotected Matrix getMarginalPredictionsForThisStandAndSpecies(MathildeRecruitmentStand stand, MathildeTreeSpeciesProvider.MathildeTreeSpecies species, int resolution, boolean isResidualVariabilityEnabled)
stand
- a MathildeRecruitmentStand instancespecies
- a MathildeTreeSpecies instanceresolution
- the maximum number of recruitsisResidualVariabilityEnabled
- true to enabled the stochastic variability.protected double getNegativeBinomialMean(Matrix betaCount, MathildeRecruitmentStand stand, MathildeTreeSpeciesProvider.MathildeTreeSpecies species)
protected double getFalseZeroProbability(Matrix betaZero, MathildeRecruitmentStand stand, MathildeTreeSpeciesProvider.MathildeTreeSpecies species)