Comprehensive predictive modeling of resistive switching devices using a bias-dependent window function approach. (August 2020)