Adaptive Modeling of Hysteretic Magnetometers