Hi, I've wrote two basic but useful utilities for probability and tests for them. I would like to ask if the developers of the Apache Commons Math project are interested in me submitting them. I still have some touching up to do so that they fit the style guidelines.
The first is isProbability(double) which returns true if and only if x is a probability, i.e., not smaller than zero and not bigger than one. The other is isSampleSpace(double[]) which returns true if and only if the values are a sample space, i.e., each value is a probability and the sum of the values in the input array is one. Prototype is attached. Thanks, Ori Ziv.
--------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org