This block calculates the time integral of the squared deviation between inputs u1 and u2:
y = ∫ (u1 - u2)² dt
If scaleByDuration is true, the output is normalized by the time interval since activation.