ensemble.addTermination("input", weights, .005f, false);
ensemble.collectSpikes(true);
network.addNode(ensemble);
FunctionInput input = new FunctionInput("input", new Function[]{new PiecewiseConstantFunction(new float[]{0.2f}, new float[]{0, 0.5f})}, Units.UNK);
network.addNode(input);
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);