Package cnslab.cnsnetwork

Examples of cnslab.cnsnetwork.Stimulus


     
      assertEquals (
        2,
        stimuli.length );
     
      final Stimulus  stimulus0 = stimuli [ 0 ];
     
      final Stimulus  stimulus1 = stimuli [ 1 ];
     
      assertNotNull ( stimulus0 );
     
      assertNotNull ( stimulus1 );
     
      assertNull ( stimulus0.simulatorParser );
     
      assertNull ( stimulus1.simulatorParser );
     
      // strength
     
      assertEquals (
        1e-10,
        stimulus0.getStrength ( ),
        0 );
     
      assertEquals (
        1e-10,
        stimulus1.getStrength ( ),
        0 );
     
      // type
     
      assertEquals (
        0,
        stimulus0.getType ( ) );
     
      assertEquals (
        0,
        stimulus1.getType ( ) );
     
      // onTime
     
      assertEquals (
        0.0,
        stimulus0.getOnTime ( ),
        0 );
     
      assertEquals (
        0.0,
        stimulus1.getOnTime ( ),
        0 );
     
      // offTime
     
      assertEquals (
        10.0,
        stimulus0.getOffTime ( ),
        0 );
     
      assertEquals (
        10.0,
        stimulus1.getOffTime ( ),
        0 );
     
      // freq
     
      assertEquals (
        40.0,
        stimulus0.getFreq ( ),
        0 );
     
      assertEquals (
        40.0,
        stimulus1.getFreq ( ),
        0 );
     
      // decay
     
      assertEquals (
        0.0,
        stimulus0.getDecay ( ),
        0 );
     
      assertEquals (
        0.0,
        stimulus1.getDecay ( ),
        0 );
     
      // seed
     
      assertNotNull ( stimulus0.seed );
     
      assertNotNull ( stimulus1.seed );
     
      // channel
     
      assertEquals (
        -1,
        stimulus0.getChannel ( ) );
     
      assertEquals (
        -1,
        stimulus1.getChannel ( ) );
     
      // TODO:  For prefix and suffix parsing, see Stimulus.background()
     
      final Recorder  recorder = experiment.recorder;
     
View Full Code Here


      int y1,
      int x2,
      int y2)
    ////////////////////////////////////////////////////////////////////////
    {
      Stimulus stimulus = createStimulus ( );
     
      stimulus.plotLine ( x1 , y1, x2, y2, "AA", "BB" );

      final List<PInputEvent> poissonInputList = stimulus.init ( -1 );
     
      assertNotNull ( poissonInputList );
           
      int deltaX = Math.abs ( x2 - x1 );
      int deltaY = Math.abs ( y2 - y1 );
View Full Code Here

      int y1,
      int x2,
      int y2)
    ////////////////////////////////////////////////////////////////////////
    {
      Stimulus stimulus = createStimulus ( );
           
      stimulus.plotSquare ( x1 , y1, x2, y2, "AA", "BB" );

      final List<PInputEvent> poissonInputList = stimulus.init ( -1 );
     
      assertNotNull ( poissonInputList );
           
      int deltaX = Math.abs ( x2 - x1 );
      int deltaY = Math.abs ( y2 - y1 );
View Full Code Here

      int y1,
      int x2,
      int y2)
    ////////////////////////////////////////////////////////////////////////
    {
      Stimulus stimulus = createStimulus ( );
     
      stimulus.plotFilledSquare ( x1 , y1, x2, y2, "AA", "BB" );

      final List<PInputEvent> poissonInputList = stimulus.init ( -1 );
     
      assertNotNull ( poissonInputList );
           
      int deltaX = Math.abs ( x2 - x1 );
      int deltaY = Math.abs ( y2 - y1 );
View Full Code Here

    private final Stimulus createStimulus ( )
    ////////////////////////////////////////////////////////////////////////
    {
      final SimulatorParser simulatorParser = createSimulatorParser
          ( SIZE , SIZE , 1 , 1 );
      final Stimulus stimulus = new Stimulus (
          MODEL_FACTORY,
          simulatorParser,
          1e-10, // strength
          0, // type
          0, // on time
View Full Code Here

TOP

Related Classes of cnslab.cnsnetwork.Stimulus

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.