Ruby port of GrowthForecast