Deep Reinforcement Learning for the Synthesis of Self-Triggered Sampling Strategies