Switched to variable type for representing probabilities (eg Float, Double, Rational)