assertEquals(5, p.getSpikeTimes(1).length);
TestUtil.assertClose(1, p.getSpikeTimes(0)[1], myTolerance);
}
public void testSubsetSpikePatternIntArray() {
SpikePattern p = DataUtils.subset(myOriginalPattern, new int[]{9, 8, 7});
assertEquals(3, p.getNumNeurons());
assertEquals(9, p.getSpikeTimes(0).length);
assertEquals(8, p.getSpikeTimes(1).length);
assertEquals(7, p.getSpikeTimes(2).length);
TestUtil.assertClose(1, p.getSpikeTimes(0)[1], myTolerance);
}