A wave that has been digitized can be played back as a wave over and over, and it will be the same every time. For that reason, digital signals are a very reliable way to record information—as long as the numbers in the digital signal don’t change, the information can be reproduced exactly over and over again.
A Network Intrusion Detection System as the name suggests it "detects" the attackers / vulnerabilities existed in the network system / infrastructure.
A Network Intrusion Prevention Detection System as the name suggests it "prevents" the attackers from hacking the system. While a detection just detects the abnormalities where as a prevention system can prevent them.
The detection system detects the vulnerabilities, security threats and the attackers in the system through the web traffic analyzers and security analyzers.
The prevention system prevents the network from being compromised. It tries to regain the access if already compromised.
Both the NIDS and NIPS have to be coordinated for the full protection of the network.