I am unaware of any document that describes the CAL scripts included with SONAR.
CAL scripts are text files that can be viewed with any text editor or web browser. Many scripts have comments in the script that are useful when trying to figure out how to use them. The UNDUPE.CAL does not, so you have to put your scripting hat on. The "Window for Time Identity" is used to determine what is a duplicate note. By default a duplicate must start at the exact same time as another note unless a nonzero value is entered in "Window for Time Identity". Then the script will consider a note a duplicate if it starts within the number of ticks entered in "Window for Time Identity" of another note.
FWIW, a Google search of the forum for UNDUPE (i.e. Google search keys site:forum.cakewalk.com UNDUPE) will pop up several threads on how to use the script. I would imagine the same is true for most of the CAL scripts.