Statistics for Voltage-driven hysteresis model for resistive switching: SPICE modeling and circuit applications