Examples of reset()


Examples of ca.nengo.model.neuron.ExpandableSynapticIntegrator.reset()

      t.setValues(new SpikeOutputImpl(new boolean[]{false}, Units.SPIKES, 0));
    }
    TimeSeries1D current = si.run(.010f, .011f);
    assertTrue(current.getValues()[1][0] > .9f);
   
    si.reset(false); //there is no random setting to test
    current = si.run(.011f, .012f);
    assertTrue(current.getValues1D()[1] < .01f);
  }

}
View Full Code Here

Examples of ca.nengo.model.neuron.impl.LIFSpikeGenerator.reset()

    float[] voltage1 = ((TimeSeries1D) sg.getHistory("V")).getValues1D();

    sg.run(new float[]{0f, .005f}, new float[]{1f, 1f});
    float[] voltage2 = ((TimeSeries1D) sg.getHistory("V")).getValues1D();
   
    sg.reset(false);
   
    sg.run(new float[]{0f, .005f}, new float[]{1f, 1f});
    float[] voltage3 = ((TimeSeries1D) sg.getHistory("V")).getValues1D();
   
    assertBetween(voltage1[0], .2f, .23f);
View Full Code Here

Examples of ca.nengo.model.neuron.impl.LinearSynapticIntegrator.reset()

      t.setValues(new SpikeOutputImpl(new boolean[]{false}, Units.SPIKES, 0));
    }
    TimeSeries1D current = si.run(.010f, .011f);
    assertTrue(current.getValues()[1][0] > .9f);
   
    si.reset(false); //there is no random setting to test
    current = si.run(.011f, .012f);
    assertTrue(current.getValues1D()[1] < .01f);
  }

}
View Full Code Here

Examples of ca.nengo.util.Probe.reset()

   
    //remove negative weights ...
    System.out.println("Minimum weight without bias: " + MU.min(projection.getWeights()));
    projection.addBias(100, .005f, tauPSC, true, false);
    System.out.println("Minimum weight with bias: " + MU.min(projection.getWeights()));
    pPost.reset();
    network.run(0, 2);
    TimeSeries diff = new TimeSeriesImpl(ideal.getTimes(), MU.difference(ideal.getValues(), pPost.getData().getValues()), ideal.getUnits());
    Plotter.plot(diff, .01f, "positive weights");
   
    projection.removeBias();
View Full Code Here

Examples of ca.odell.glazedlists.impl.event.Tree4Deltas.reset()

    /**
     * Make sure the deltas iterator works as expected.
     */
    public void testIterateByBlocks() {
        Tree4Deltas deltas = new Tree4Deltas();
        deltas.reset(10);
        deltas.targetInsert(3, 6, null);
        deltas.targetDelete(8, 10, ListEvent.UNKNOWN_VALUE);

        Tree4Deltas.Iterator iterator = deltas.iterator();
        assertEquals(true, iterator.hasNextNode());
View Full Code Here

Examples of cc.mallet.optimize.LimitedMemoryBFGS.reset()

    }
    catch (Exception e) {
      e.printStackTrace();
    }
   
    optimizer.reset();
    try {
      converged = optimizer.optimize(numIterations);
    }
    catch (Exception e) {
      e.printStackTrace();
View Full Code Here

Examples of cc.redberry.core.combinatorics.PriorityPermutationGenerator.reset()

        @Override
        public boolean test(final IndexMappingBufferTester tester) {
            int[] permutation;
            final PriorityPermutationGenerator generator = permutationGenerator;
            generator.reset();
            int i;
            OUTER:
            while ((permutation = generator.next()) != null)
                for (i = 0; i < from.length; ++i) {
                    if (!ProviderSum.test(from[i], to[permutation[i]], tester))
View Full Code Here

Examples of cc.redberry.core.tensor.random.RandomProduct.reset()

        RandomProduct rp = new RandomProduct(80, 4,
                new int[]{5, 0, 0, 0}, //Min Free Indices
                new int[]{10, 0, 0, 0}, //Indices count
                new int[]{7, 0, 0, 0}, //Max INdex Per Tensor
                20, 2, true);
        rp.reset(-3806751651286565680L);
        System.out.println("Random Seed = " + rp.getSeed());
        System.out.println("NM Seed = " + CC.getNameManager().getSeed());
        DescriptiveStatistics timeStats = new DescriptiveStatistics();
        DescriptiveStatistics trysStats = new DescriptiveStatistics();
        int count = 0;
View Full Code Here

Examples of cc.redberry.core.tensor.random.RandomTensor.reset()

                4,
                10,
                new int[]{4, 0, 0, 0},
                new int[]{10, 0, 0, 0},
                false);
        rp.reset(-3806751651286565680L);
        System.out.println("Random Seed = " + rp.getSeed());
        System.out.println("NM Seed = " + CC.getNameManager().getSeed());
        DescriptiveStatistics timeStats = new DescriptiveStatistics();
        DescriptiveStatistics trysStats = new DescriptiveStatistics();
        int count = 0;
View Full Code Here

Examples of cc.redberry.core.tensor.random.TRandom.reset()

                4,
                10,
                new int[]{4, 0, 0, 0},
                new int[]{10, 0, 0, 0},
                false);
        rp.reset(-3806751651286565680L);
        System.out.println("Random Seed = " + rp.getSeed());
        System.out.println("NM Seed = " + CC.getNameManager().getSeed());
        DescriptiveStatistics timeStats = new DescriptiveStatistics();
        DescriptiveStatistics trysStats = new DescriptiveStatistics();
        int count = 0;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.