Well... First of all you'd like to read this:
http://dougkerr.net/pumpkin/articles/APEX.pdfThis document describes so-called APEX - The Additive System of Photographic Exposure. What does it mean? There are parameters that result in exposure: aperture, ISO and shutter time. But the effect of change of each parameter is different. That's where APEX comes. shutter time, ISO and aperture are there changed into APEX values: Tv, Sv and Iv. There's also Bv which means brightness of the scene itself (while exposer says how dark/bright is the image). They all can be merged into one equation:
Ev = Bv + Sv -Av -Tv
And this equation shows, how changing of one value causes changes in exposure. For example if you add '2' to Sv (increasing ISO) then you can for example increase Av +2 and the exposure will be intouched. relations between Sv, Av or Tv and ISO, aperture and shutter time are described in APEX.
Now what's this correction parameter:
The script calculates the Tv value from modified equation:
Tv_new=Bv+Sv-Av-Ev
let's imagine you'r camera has calculated, that the brightness of the scene (Bv) is -500 (at night). And let's say other parameters result with Tv_new=120.
If you have set parameter
@-500 [ -100 ]
then the camera understand, that when brightness of the scene is -100 you want to decrease resulting exposure 100 APEX units. So the Tv_new will be changed 100 units up, which results with shorter shutter time and darker image.
Let's say you have set:
@+500 [200]
and the measured brightness is +500. So the camera will decrease Tv_new of 200 APEX units causing in brighter image.
And at the end: the correction is linear. Imagine you have set both parameters as above and camera see scene with brightness = 0. So the correction will be in the middle of -100 and 200, literally: +100.
I hope I help you a little;)