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

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


   */
  public static SelectedFactoryNode nB() {
    return new SelectedFactoryNode(
        new SelectionInformation<>(
            AbstractDistributionFactory.class, null,
            new ExponentialDistributionFactory()));
  }
View Full Code Here


  }

  public void testRemoveFactories() throws Exception {
    List<Factory<?>> factories = new ArrayList<>();
    factories.add(new NormalDistributionFactory());
    factories.add(new ExponentialDistributionFactory());
    FactoryDataSynchronizer.addNewFactories(factories, dataStorage);
    factories.remove(1);
    for (int i = 0; i < TRIALS; i++) {
      FactoryDataSynchronizer.removeOldFactories(factories, dataStorage);
      assertEquals(1, dataStorage.getFactories().size());
View Full Code Here

  public void testFactoriesSynchronisation() throws Exception {

    List<Factory<?>> oldFactories = new ArrayList<>();
    oldFactories.add(new NormalDistributionFactory());
    oldFactories.add(new ExponentialDistributionFactory());
    FactoryDataSynchronizer.synchroniseFactories(oldFactories, dataStorage);
    assertEquals(2, dataStorage.getFactories().size());

    List<Factory<?>> newFactories = new ArrayList<>();
    newFactories.add(new PoissonDistributionFactory());
View Full Code Here

TOP

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

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.