a circuit for realizing controllable analog weights as used , for example , in template matching circuits . analog weights are obtained by storing charge on two primary capacitors and by controlling the potential difference between the two primary capacitors . the control of charge on the two capacitors is effected with a bridging connection between the two primary capacitors . in one embodiment , the bridging connection contains two switches and an mos transistor .