/src/main/java/net/finmath/climate/models/dice/submodels/ForcingFunction.java
private final int carbonConcentrationBase = 588;
private final double carbonConcentrationBase = 588;
package net.finmath.climate.models.dice.submodels; import java.util.function.BiFunction; public class ForcingFunction implements BiFunction<CarbonConcentration3DScalar, Double, Double> { <extra_id_0> private final double forcingPerCarbonDoubling = 3.6813; @Override public Double apply(CarbonConcentration3DScalar carbonConcentration, Double forcingExternal) { return forcingPerCarbonDoubling * Math.log(carbonConcentration.getExpectedCarbonConcentrationInAtmosphere() / carbonConcentrationBase ) / Math.log(2) + forcingExternal; } }