/src/main/java/net/finmath/climate/models/dice/submodels/EvolutionOfProductivity.java
double timeStep = timeDiscretization.getTimeStep( timeIndex) ; double time = timeDiscretization.getTime( timeIndex) ;
double time = timeDiscretization.getTime ( timeIndex ) ; double timeStep = timeDiscretization.getTimeStep ( timeIndex ) ;
} public EvolutionOfProductivity(TimeDiscretization timeDiscretization) { this(timeDiscretization, 0.076, 0.005); } @Override public Function<Double, Double> apply(Integer timeIndex) { <extra_id_0> return (Double productivity) -> { double productivityGrowthRate = productivityGrowthRateInitial * Math.exp(-productivityGrowthRateDecayRate * time); return productivity / (Math.exp(Math.log(1 - (productivityGrowthRate))*timeStep/5.0)); }; } }