I need a circuit giving a DC voltage which accurately represents an AC voltage input, both being in the range 0 to 5V. The form factor of the AC input is constant, so I don't mind whether I measure peak, rms or whatever. But I need to eliminate temperature effects, so diode drops need to be minimised/eliminated. Any ideas?