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
ConstructorsConstructorDescriptionInitialWealthResidualPolicy(boolean capHousingResiduals, double housingRmseMultiplier, boolean capMortgageResiduals, double mortgageRmseMultiplier) Creates an instance of aInitialWealthResidualPolicyrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleapplyHousingCap(double residual, double rmse) doubleapplyMortgageCap(double residual, double rmse) booleanReturns the value of thecapHousingResidualsrecord component.booleanReturns the value of thecapMortgageResidualsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of thehousingRmseMultiplierrecord component.doubleReturns the value of themortgageRmseMultiplierrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InitialWealthResidualPolicy
public InitialWealthResidualPolicy(boolean capHousingResiduals, double housingRmseMultiplier, boolean capMortgageResiduals, double mortgageRmseMultiplier) Creates an instance of aInitialWealthResidualPolicyrecord class.- Parameters:
capHousingResiduals- the value for thecapHousingResidualsrecord componenthousingRmseMultiplier- the value for thehousingRmseMultiplierrecord componentcapMortgageResiduals- the value for thecapMortgageResidualsrecord componentmortgageRmseMultiplier- the value for themortgageRmseMultiplierrecord component
-
-
Method Details
-
applyHousingCap
public double applyHousingCap(double residual, double rmse) -
applyMortgageCap
public double applyMortgageCap(double residual, double rmse) -
toString
-
hashCode
-
equals
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 thecomparemethod from their corresponding wrapper classes. -
capHousingResiduals
public boolean capHousingResiduals()Returns the value of thecapHousingResidualsrecord component.- Returns:
- the value of the
capHousingResidualsrecord component
-
housingRmseMultiplier
public double housingRmseMultiplier()Returns the value of thehousingRmseMultiplierrecord component.- Returns:
- the value of the
housingRmseMultiplierrecord component
-
capMortgageResiduals
public boolean capMortgageResiduals()Returns the value of thecapMortgageResidualsrecord component.- Returns:
- the value of the
capMortgageResidualsrecord component
-
mortgageRmseMultiplier
public double mortgageRmseMultiplier()Returns the value of themortgageRmseMultiplierrecord component.- Returns:
- the value of the
mortgageRmseMultiplierrecord component
-