Package cnslab.cnsmath

Examples of cnslab.cnsmath.Seed


    public void  testConstructor ( )
      throws Exception
    ////////////////////////////////////////////////////////////////////////
    {
      new SimulatorParser (
        new Seed ( -3 ),
        toFile ( TEST_MODEL_FILENAME ) );
    }
View Full Code Here


    public void  testParse ( )
      throws Exception
    ////////////////////////////////////////////////////////////////////////
    {
      final SimulatorParser  simulatorParser = new SimulatorParser (
        new Seed ( -3 ),
        toFile ( TEST_MODEL_FILENAME ) );
     
      assertNotNull ( simulatorParser.document );
     
      assertNotNull ( simulatorParser.rootElement );
View Full Code Here

    public void  testReferenceCheck ( )
      throws Exception
    ////////////////////////////////////////////////////////////////////////
    {
      final SimulatorParser  simulatorParser = new SimulatorParser (
        new Seed ( -3 ),
        toFile ( TEST_MODEL_FILENAME ) );
     
      simulatorParser.referenceCheck ( );
    }
View Full Code Here

          TEST_SEED_INT,
          jpvmInfo );
     
      assertNotNull ( simulatorParser );
     
      final Seed  idum = new Seed ( -2 );
     
      final Network  network = new Network (
        simulatorParser.getModelFactory ( ),
        simulatorParser.getDiscreteEventQueue ( ),
        simulatorParser.getModulatedSynapseSeq ( ),
View Full Code Here

          0, // type
          0, // on time
          5, // off time
          20, // frequency
          0, // decay
          new Seed(-3),
          -1 // channel
          );
      return stimulus;
    }
View Full Code Here

    }
   
    private static Network  createNetwork ( )
    ////////////////////////////////////////////////////////////////////////
    {
      final Seed  seed = new Seed ( -3 );
     
      final Neuron  neuron0 = new BKPoissonNeuron (
        seed,
        new BKPoissonNeuronPara ( ) );
     
      neuron0.setRecord ( true );
     
      final Neuron [ ]  neurons = new Neuron [ ] { neuron0, null };
     
      final Map<Integer, Axon>  axonMap = new HashMap<Integer, Axon> ( );
     
      final SimulatorParser  simulatorParser = new SimulatorParser ( );
     
      final Seed  networkSeed = new Seed ( -3 );
     
      final Stimulus [ ]  stimuli = new Stimulus [ ] { };
     
      final SubExp [ ]  subexperiments = new SubExp [ ] {
        new SubExp (
View Full Code Here

        = CLASS_LOADER.getResource ( TEST_MODEL_FILENAME ).getFile ( );
     
      LOGGER.info ( modelFilename );
     
      final MainSimulator  mainSimulator = new MainSimulator (
        new Seed ( TEST_SEED ),
        new File ( modelFilename ),
        TEST_HEAP_SIZE );
     
      // TODO:  This test seems to fail when run from the mvn directory,
      // probably because jpvm requires running from the main directory,
View Full Code Here

    @Test
    public void  testFire ( )
      throws Exception
    ////////////////////////////////////////////////////////////////////////
    {
      final Seed  seed = new Seed ( -3 );
     
      final Neuron  neuron0 = new BKPoissonNeuron (
        seed,
        new BKPoissonNeuronPara ( ) );
     
      final Neuron [ ]  neurons = new Neuron [ ] { neuron0 };
     
      final Map<Integer, Axon>  axonMap = new HashMap<Integer, Axon> ( );
     
      final SimulatorParser  simulatorParser = new SimulatorParser ( );
     
      final Seed  networkSeed = new Seed ( -3 );
     
      final Network  network = new Network (
        simulatorParser.getModelFactory ( ),
        simulatorParser.getDiscreteEventQueue ( ),
        simulatorParser.getModulatedSynapseSeq ( ),       
View Full Code Here

    @Test
    public void  testInit ( )
      throws Exception
    ////////////////////////////////////////////////////////////////////////
    {
      final Seed  seed = new Seed ( -3 );
     
      final Neuron  neuron0 = new BKPoissonNeuron (
          seed,
          new BKPoissonNeuronPara ( ) );
     
      final Neuron [ ]  neurons = new Neuron [ ] { neuron0 };
     
      final Map<Integer, Axon>  axonMap = new HashMap<Integer, Axon> ( );
     
      final SimulatorParser  simulatorParser = new SimulatorParser ( );
     
      final Seed  networkSeed = new Seed ( -3 );
     
      final Stimulus [ ]  stimuli = new Stimulus [ ] { };
     
      final SubExp [ ]  subexperiments = new SubExp [ ] {
        new SubExp (
View Full Code Here

    @Test
    public void  testParallelFireProcess ( )
      throws Exception, jpvmException
    ////////////////////////////////////////////////////////////////////////
    {
      final Seed  seed = new Seed ( -3 );
     
      final Neuron  neuron0 = new BKPoissonNeuron (
          seed,
          new BKPoissonNeuronPara ( ) );
     
      final Neuron [ ]  neurons = new Neuron [ ] { neuron0, null };
     
      final Map<Integer, Axon>  axonMap = new HashMap<Integer, Axon> ( );
     
      final SimulatorParser  simulatorParser = new SimulatorParser ( );
     
      final Seed  networkSeed = new Seed ( -4 );
     
      final Stimulus [ ]  stimuli = new Stimulus [ ] { };
     
      final SubExp [ ]  subexperiments = new SubExp [ ] {
        new SubExp (
View Full Code Here

TOP

Related Classes of cnslab.cnsmath.Seed

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.