Beispiel #1
0
        public void GetData(double startTime, double endTime, out SpikeItem[] spikesArray)
        {
            double estStartTime = Math.Max(0, Math.Round(startTime - this.indexStep * 0.5, 3));
            double estEndTime   = Math.Min(this.indexesArray[this.indexesArray.Length - 1].Time, Math.Round(endTime + this.indexStep * 0.5, 3));

            int startCount = (int)this.indexesHash[estStartTime];
            int endCount   = (int)this.indexesHash[estEndTime];

            spikesArray = new SpikeItem[endCount - startCount];
            for (int i = 0; i < spikesArray.Length; i++)
            {
                spikesArray[i] = this.internalArray[startCount + i];
            }
        }
Beispiel #2
0
 public SpikeModel()
 {
     Item = new SpikeItem();
 }