public class FrenchNFIThinnerPredictor extends REpiceaBinaryEventPredictor<FrenchNFIThinnerPlot,java.lang.Object>
Modifier and Type | Class and Description |
---|---|
static class |
FrenchNFIThinnerPredictor.FrenchNFIThinnerSpecies |
REpiceaPredictor.CruiseLine, REpiceaPredictor.ErrorTermGroup, REpiceaPredictor.IntervalNestedInPlotDefinition
Modifier and Type | Field and Description |
---|---|
protected lerfob.predictor.thinners.frenchnfithinner2018.FrenchNFIThinnerStandingPriceProvider |
priceProvider |
DefaultZeroIndex, isRandomEffectsVariabilityEnabled, isResidualVariabilityEnabled, listeners, oXVector
isParametersVariabilityEnabled
Constructor and Description |
---|
FrenchNFIThinnerPredictor(boolean isPredictionVariabilityEnabled,
boolean isPriceVariabilityEnabled)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected static FrenchNFIThinnerPredictor.FrenchNFIThinnerSpecies |
getFrenchNFIThinnerSpeciesFromThisString(java.lang.String speciesName)
This method returns a FrenchNFIThinnerSpecies instance that matches the species name.
|
double[] |
getStandingPrices(FrenchNFIThinnerPredictor.FrenchNFIThinnerSpecies targetSpecies,
int year0,
int year1,
int monteCarloRealizationId)
This method makes it possible to retrieve the prices for a given period and a given
target species.
|
protected void |
init()
This method reads all the parameters in .csv files and stores the estimates into members defaultBeta, defaultResidualError,
and defaultRandomEffects.
|
double |
predictEventProbability(FrenchNFIThinnerPlot plot,
java.lang.Object tree,
java.lang.Object... parms)
This method returns the probability of harvest occurrence at the plot level.
|
void |
resetModifiers() |
void |
setBasicTrendModifier(FrenchNFIThinnerPredictor.FrenchNFIThinnerSpecies species,
int fromYear,
int toYear,
double relativeChange)
This method makes it possible to induce price changes over time for a particular species.
|
void |
setBasicTrendModifier(int fromYear,
int toYear,
double relativeChange)
This method makes it possible to induce price changes over time for all species.
|
void |
setMultiplierModifier(FrenchNFIThinnerPredictor.FrenchNFIThinnerSpecies species,
int fromYear,
int toYear,
double relativeChange)
This method makes it possible to induce a proportional price changes for a given period and a give species.
|
void |
setMultiplierModifier(int fromYear,
int toYear,
double relativeChange)
This method makes it possible to induce a proportional price changes for a given period for all species.
|
findFirstParameterOfThisClass, predictEvent
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
protected final lerfob.predictor.thinners.frenchnfithinner2018.FrenchNFIThinnerStandingPriceProvider priceProvider
public FrenchNFIThinnerPredictor(boolean isPredictionVariabilityEnabled, boolean isPriceVariabilityEnabled)
isPredictionVariabilityEnabled
- true to enable the classic stochastic modeisPriceVariabilityEnabled
- true to enable the stochasticity of the pricesprotected void init()
REpiceaPredictor
init
in class REpiceaPredictor
public double predictEventProbability(FrenchNFIThinnerPlot plot, java.lang.Object tree, java.lang.Object... parms)
predictEventProbability
in class REpiceaBinaryEventPredictor<FrenchNFIThinnerPlot,java.lang.Object>
plot
- a FrenchNFIThinnerPlot instancetree
- USELESS can be set to NULLparms
- should contain two integers being the initial and the final dates. Note that the price of the
initial year does not contribute to the probability of harvesting. For example, if one provides 2012 and
2017 as initial and final dates, then the prices of 2013, 2014, 2015, 2016 and 2017 will contribute to the
probability of harvesting.public double[] getStandingPrices(FrenchNFIThinnerPredictor.FrenchNFIThinnerSpecies targetSpecies, int year0, int year1, int monteCarloRealizationId)
targetSpecies
- a FrenchNFIThinnerSpecies enumyear0
- the beginning of the intervalyear1
- the end of the intervalmonteCarloRealizationId
- the id of the Monte Carlo realization if neededpublic void setBasicTrendModifier(FrenchNFIThinnerPredictor.FrenchNFIThinnerSpecies species, int fromYear, int toYear, double relativeChange)
species
- a FrenchNFIThinnerSpecies instancefromYear
- the starting yeartoYear
- the final yearrelativeChange
- the relative change over the period. For example, 0.1 would be a 10% increase over the period.public void setBasicTrendModifier(int fromYear, int toYear, double relativeChange)
fromYear
- the starting yeartoYear
- the final yearrelativeChange
- the relative change over the period. For example, 0.1 would be a 10% increase over the period.public void setMultiplierModifier(FrenchNFIThinnerPredictor.FrenchNFIThinnerSpecies species, int fromYear, int toYear, double relativeChange)
species
- a FrenchNFIThinnerSpecies instancefromYear
- the starting yeartoYear
- the final yearrelativeChange
- the relative change over the period. For example, 0.1 would be a 10% increase over the period.public void setMultiplierModifier(int fromYear, int toYear, double relativeChange)
fromYear
- the starting yeartoYear
- the final yearrelativeChange
- the relative change over the period. For example, 0.1 would be a 10% increase over the period.public void resetModifiers()
protected static FrenchNFIThinnerPredictor.FrenchNFIThinnerSpecies getFrenchNFIThinnerSpeciesFromThisString(java.lang.String speciesName)
speciesName
- a String that represents the common species name in French.