denominator code for Ant probability