Class DamageFromTemperature

java.lang.Object
net.finmath.climate.models.dice.submodels.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 Summary

    Constructors
    Constructor
    Description
    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.
    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.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    applyAsDouble(double temperature)
    Get the relative damage the GDP at a given temperature above pre-industrial.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.function.DoubleUnaryOperator

    andThen, compose
  • Constructor Details

    • 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 Details

    • 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.