A generalised stochastic model for the simulation of occupant presence