Package org.jamesii.core.math.random.distributions

Examples of org.jamesii.core.math.random.distributions.AbstractNormalDistribution


          ((Double) (Math.floor(rand.nextDouble() * (oldLevel.size()))))
              .intValue();
      addEdge(tree, actualNodeNum, oldLevel.get(randomParent));
      nodesOnLevel.add(actualNodeNum);
      actualNodeNum++;
      AbstractNormalDistribution normDist =
          new NormalDistribution(rand, 0., 1.);

      for (int i : oldLevel) {

        randomNumber =
            approxNumberOfChildren + 0.25 * approxNumberOfChildren
                * normDist.getRandomNumber();

        while (randomNumber > 0.5 && actualNodeNum < numOfNodes) {
          addEdge(tree, actualNodeNum, i);
          nodesOnLevel.add(actualNodeNum);
          actualNodeNum++;
View Full Code Here

TOP

Related Classes of org.jamesii.core.math.random.distributions.AbstractNormalDistribution

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.