weather_simulator: Weather Simulation

Description Usage Arguments Details Examples

View source: R/weather_simulator.R

Description

Weather is either sunny or rainy in Richmond. If a day is sunny, P(sunny tomorrow)=0.85. If a day is rainy, P(rainy tomorrow)=0.35. If a day is rainy, the amount of rainfall accumulation in the city is governed by an Exponential(L=2) distribution, where the value from that distribution is the rainfall in inches. If a day is sunny, there can be no rain. Specifically, given an initial day's weather conditions, simulate the following 10 days of weather and calculate the projected rainfall acc

Usage

1

Arguments

w

character; "sunny" or "rainy"; the weather condition today.

Details

Given an initial day's weather conditions, simulate the following 10 days of weather and calculate the projected rainfall accumulation in inches.

Examples

1

RashaAlsaadawi/FinalRasha documentation built on Dec. 31, 2020, 4:23 p.m.