com.meliorbis.economics.infrastructure.simulation.PeriodAggregateState Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ModelSolver Show documentation
Show all versions of ModelSolver Show documentation
A library for solving economic models, particularly
macroeconomic models with heterogeneous agents who have model-consistent
expectations
package com.meliorbis.economics.infrastructure.simulation;
import com.meliorbis.numerics.generic.MultiDimensionalArray;
import com.meliorbis.numerics.generic.primitives.DoubleArray;
/**
* Holds the aggregate state of a single period
*
* @param The type of the shocks
*/
public class PeriodAggregateState
{
private MultiDimensionalArray _shocks;
private DoubleArray> _states;
private DoubleArray> _controls;
public PeriodAggregateState(){}
public PeriodAggregateState(
MultiDimensionalArray shocks_,
DoubleArray> states_,
DoubleArray> controls_)
{
_shocks = shocks_;
_states = states_;
_controls = controls_;
}
public DoubleArray> getControls()
{
return _controls;
}
public void setControls(DoubleArray> controls_)
{
_controls = controls_;
}
public MultiDimensionalArray getShocks()
{
return _shocks;
}
public DoubleArray> getStates()
{
return _states;
}
public void setStates(DoubleArray> states_)
{
_states = states_;
}
public void setShocks(MultiDimensionalArray shocks_)
{
_shocks = shocks_;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy