NetworkImpl network = new NetworkImpl();
LinearSynapticIntegrator integrator = new LinearSynapticIntegrator(.001f, Units.ACU);
Termination t = integrator.addTermination("input", new float[]{1}, .005f, false);
ALIFSpikeGenerator generator = new ALIFSpikeGenerator(.0005f, .02f, .2f, .05f);
SpikingNeuron neuron = new SpikingNeuron(integrator, generator, 2, 5, "neuron");
network.addNode(neuron);
Function f = new PiecewiseConstantFunction(new float[]{1, 2}, new float[]{0, 1, -1});
// Function f = new SineFunction((float) Math.PI, 1f / (float) Math.PI);
// Plotter.plot(f, 0, .01f, 3, "input");
FunctionInput input = new FunctionInput("input", new Function[]{f}, Units.UNK);