Benford's Law in Java - how to make a math function into Java
问题 I have a quick question. I am trying to make a fraud detection app in java, the app will be primarily based on Benford's law. Benford's law is super cool, it basically can be interpreted to say that in a real financial transaction the first digit is commonly a 1, 2, or 3 and very rarely an 8, 9. I haven't been able to get the Benford formula translated into code that can be run in Java. http://www.mathpages.com/home/kmath302/kmath302.htm This link has more information about what the Benford