Class DamageFromTemperature

  • All Implemented Interfaces:
    DoubleUnaryOperator

    public class DamageFromTemperature
    extends Object
    implements DoubleUnaryOperator
    The function \( T \mapsto \Omega(T) \) with \( T \) being the temperature above baseline, i.e., \( Omega(0) = 0 \). The function is a second order polynomial.
    Author:
    Christian Fries
    • Constructor Detail

      • DamageFromTemperature

        public DamageFromTemperature​(double tempToDamage0,
                                     double tempToDamage1,
                                     double tempToDamage2)
        Create the damage function \( T \mapsto \Omega(T) = a_{0} + a_{1} T + a_{2} T^{2} \), with \( T \) being temperature above pre-industrial.
        Parameters:
        tempToDamage0 - The constant term.
        tempToDamage1 - The coefficient of the linear term.
        tempToDamage2 - The coefficient of the quadratic term.
      • DamageFromTemperature

        public DamageFromTemperature()
        Create the damage function \( T \mapsto (a_{0} + a_{1} T + a_{2} T^{2}) \), with \( T \) being temperature above pre-industrial, using the default DICE (2016) parameters.
    • Method Detail

      • applyAsDouble

        public double applyAsDouble​(double temperature)
        Get the relative damage the GDP at a given temperature above pre-industrial.
        Specified by:
        applyAsDouble in interface DoubleUnaryOperator
        Parameters:
        temperature - The above pre-industrial in °K.