Record Class InitialWealthResidualPolicy

java.lang.Object
java.lang.Record
simpaths.model.benefitunit.InitialWealthResidualPolicy

public record InitialWealthResidualPolicy(boolean capHousingResiduals, double housingRmseMultiplier, boolean capMortgageResiduals, double mortgageRmseMultiplier) extends Record
Population-load policy for bounding imputed persistent wealth residual states.

The limits are expressed as multiples of the matching regression RMSE. A disabled cap leaves the imputed state unchanged. This policy applies only when the initial state is reconstructed from the starting population; it does not alter observed wealth levels or annual regression innovations.

  • Constructor Summary

    Constructors
    Constructor
    Description
    InitialWealthResidualPolicy(boolean capHousingResiduals, double housingRmseMultiplier, boolean capMortgageResiduals, double mortgageRmseMultiplier)
    Creates an instance of a InitialWealthResidualPolicy record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    applyHousingCap(double residual, double rmse)
     
    double
    applyMortgageCap(double residual, double rmse)
     
    boolean
    Returns the value of the capHousingResiduals record component.
    boolean
    Returns the value of the capMortgageResiduals record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    double
    Returns the value of the housingRmseMultiplier record component.
    double
    Returns the value of the mortgageRmseMultiplier record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • InitialWealthResidualPolicy

      public InitialWealthResidualPolicy(boolean capHousingResiduals, double housingRmseMultiplier, boolean capMortgageResiduals, double mortgageRmseMultiplier)
      Creates an instance of a InitialWealthResidualPolicy record class.
      Parameters:
      capHousingResiduals - the value for the capHousingResiduals record component
      housingRmseMultiplier - the value for the housingRmseMultiplier record component
      capMortgageResiduals - the value for the capMortgageResiduals record component
      mortgageRmseMultiplier - the value for the mortgageRmseMultiplier record component
  • Method Details

    • applyHousingCap

      public double applyHousingCap(double residual, double rmse)
    • applyMortgageCap

      public double applyMortgageCap(double residual, double rmse)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • capHousingResiduals

      public boolean capHousingResiduals()
      Returns the value of the capHousingResiduals record component.
      Returns:
      the value of the capHousingResiduals record component
    • housingRmseMultiplier

      public double housingRmseMultiplier()
      Returns the value of the housingRmseMultiplier record component.
      Returns:
      the value of the housingRmseMultiplier record component
    • capMortgageResiduals

      public boolean capMortgageResiduals()
      Returns the value of the capMortgageResiduals record component.
      Returns:
      the value of the capMortgageResiduals record component
    • mortgageRmseMultiplier

      public double mortgageRmseMultiplier()
      Returns the value of the mortgageRmseMultiplier record component.
      Returns:
      the value of the mortgageRmseMultiplier record component