Hi Josh ncand is the number of candidates (detections) associated with the object. ncandgp is the number of those with positive difference magnitude – the function diffpos – and have real-bogus greater than 0.75 – the function good. For more information, look at the code in the links above.
Hope this helps
Roy