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

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


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


    assertEquals(0, dataStorage.getAbstractFactories().size());
  }

  public void testNewFactories() throws Exception {
    List<Factory<?>> factories = new ArrayList<>();
    factories.add(new NormalDistributionFactory());
    for (int i = 0; i < TRIALS; i++) {
      FactoryDataSynchronizer.addNewFactories(factories, dataStorage);
      assertEquals(1, dataStorage.getFactories().size());
    }
  }
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);
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<>();
View Full Code Here

    upDown(td);

    BimodalDistribution md = getDistrib(new BimodalDistributionFactory());
    upDown(md);

    NormalDistribution nod = getDistrib(new NormalDistributionFactory());
    upDown(nod);
  }
View Full Code Here

TOP

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

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.