A cardiac rhythm management system is capable of treating irregular
ventricular heart contractions, such as during atrial tachyarrhythmias
such as atrial fibrillation. A first indicated pacing interval is
computed based at least partially on a most recent V--V interval duration
between ventricular beats and a previous value of the first indicated
pacing interval. Pacing therapy is provided based on either the first
indicated pacing interval or also based on a second indicated pacing
interval, such as a sensor-indicated pacing interval. A weighted averager
such as an infinite impulse response (IIR) filter adjusts the first
indicated pacing interval for sensed beats and differently adjusts the
first indicated pacing interval for paced beats. The system regularizes
ventricular rhythms by pacing the ventricle, but inhibits pacing when the
ventricular rhythms are stable.