network.addProjection(input.getOrigin(FunctionInput.ORIGIN_NAME), ensemble.getTermination("input"));
// Probe vProbe = network.getSimulator().addProbe("ensemble", 0, "V", true);
// Probe nProbe = network.getSimulator().addProbe("ensemble", 0, "N", true);
// Probe iProbe = network.getSimulator().addProbe("ensemble", 0, "I", true);
Probe rProbe = network.getSimulator().addProbe("ensemble", "rate", true);
network.setMode(SimulationMode.RATE);
network.run(0, 1);
// Plotter.plot(ensemble.getSpikePattern());
// Plotter.plot(vProbe.getData(), "V");
// Plotter.plot(nProbe.getData(), "N");
// Plotter.plot(iProbe.getData(), "I");
Plotter.plot(rProbe.getData(), "Rate");
} catch (StructuralException e) {
e.printStackTrace();
} catch (SimulationException e) {
e.printStackTrace();