1. An active memory apparatus, comprising: a bi-polar two-terminal memory element having polarity-dependent switching, wherein a probability of switching of the bi-polar memory element between a first state and a second state decays exponentially based on time delay between received signals at the two terminals and a difference between received signal magnitude and a switching threshold magnitude, wherein the first state is a low conductance OFF state, and the second state is a high conductance ON state.