Models of hysteresis, and analysis of hysteresis