Exploiting the spatiotemporal correlation in adaptive optics using data-driven H2-optimal control