-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathShihChengChangeLog.txt
More file actions
2490 lines (2319 loc) · 131 KB
/
ShihChengChangeLog.txt
File metadata and controls
2490 lines (2319 loc) · 131 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Change Log for matlab functions used to analyze cat data
Shih-Cheng Yen
January 7, 2004
Imported project to CVS.
January 8, 2004
@refractory/plot: Modified help comments to indicate which optional
input arguments are valid for ISI histogram versus recovery
function. Now correctly uses varargin{:} instead of varargin when
passing varargin to other function.
@refractory/refractory: Added optional input arguments to help comments.
Now correctly uses varargin{:} instead of varargin when passing
varargin to other function.
January 9, 2004
getFreeFiringRate: New function to compute free firing rate, q(t).
getFunctionValues: New function to compute recovery function w(t).
January 13, 2004
spikeRecovery: Removed function argument in first line of help comments.
Changed histstep to isibinsize to be more informative.
@refractory/plot: Added option to plot qt, Wt, and rt functions. Changed
histstep to isibinsize. Now adds trailing 0 before plotting qt, Wt,
and rt instead of in getFreeFiringRate.
@refractory/refractory: Changed histstep to isibinsize. Added optional
arguments qtbinsize, duration and binsize. Changed object data
structure so it is always accessible by specifying obj.data. Added
complete description of object fields. Added code to compute qt,
Wt, and rt. Now prints progress to screen. Added repetitions and
wt fields.
@refractory/subsref: Changed 'rf' to 'data'.
getFreeFiringRate: Removed trailing 0 in rt, qt, and Wt.
getSurrogateSpikes: New function to generate surrogate spikes using
relative refractory period.
January 14, 2004
getSurrogateSpikes: Updated help comments to include cell number
argument.
@refractory/plot: Added titles, xlabels and yabels to plots.
@refractory/generateSurrogates: New class method that calls
getSurrogateSpikes.
January 15, 2004
getFreeFiringRate: Now converts spike times to column vector using
new function vecc before continuing.
@refractory/refractory: Added help comments to specify fields needed
in input data structure. Fixed paragraph wrapping.
mlqsub: New tcsh script to check MATLAB features before submiting
job to queue.
January 16, 2004
mlqsub: Rearranged input arguments and made numloops optional.
CatSurrogates: Script to use with qsub to generate surrogates.
January 19, 2004
mlqsub: Modified to work properly with qsub. Now correctly prints number
of available licenses. Now will use matlab script as is instead of
using sed to replace occurrences of @ if loops is 1.
@refractory/generateSurrogates: Added code to generate sets of
surrogates and store them in a big cell array.
CatSurrogates: Modified to run in 4 jobs. Modified to use new
generateSurrogates function.
@refractory/plot: Removed commented code that used to call
getFunctionValues.
@refractory/refractory: Removed curve fit object from data structure
to allow ogier to load refractory object although it does not have
a license for the curve fitting toolbox. Now passes curve fit
object to getFunctionValues.
getFunctionValues: Modified to take curve fit object as input argument.
getSurrogateSpikes: Added details of input data structure in help
comments.
January 20, 2004
getSurrogateSpikes: Added cstep optional input argument.
January 21, 2004
getSurrogateSpikes: Fixed bug that was not moving on to the next
repetition if spike wasn't found at the end of a repetiton.
January 23, 2004
CatSurrogates: Modified to use fewer cells in each group.
gSS.m: New function modified from getSurrogateSpikes.m to work better
with Matlab compiler. Optional input arguments were removed and
numeric inputs are now explicitly converted to numbers. Added code
to loop over sets in order to extend run time of job in queue in
order to make use of more processors at a time. Will also reduce
the number of queue jobs needed to do 1000 sets of surrogates.
gSSwrapper: New tcsh shell script to submit gSS jobs to queue. Now
passes the number of sets per run to the new gSS.
mlscript.m: Simple matlab script for testing with batch scripts.
January 27, 2004
getRefreshReversals.m: New function to generate list of refreshes
between direction reversals in the jittering grating stimulus.
February 2, 2004
getDirectionReversals.m: New function to generate list of refreshes
between direction reversals in the Buracas-like stimulus.
getGrating1OverF.m: New function to generate 1/f^beta velocity
distribution for gratings.
phaserand3d.m: New function to scramble FFT phases for movies.
February 3, 2004
getDirectionReversals: Added code to print comments in output file.
getGrating1OverF: Added code to print comments in output file. Now
also prints out number of phases as first number in file. Modified
to take framerate as optional input argument instead of refresh
rate. Now labels axes of plots and prints out min and max temporal
frequency as title of first plot. Now takes two optional input
arguments 'showplot' and 'showgrating' (with the alias 'showall'
referring to both) to display just the plot or the grating or both.
February 4, 2004
showGratingSeq.m: New function to animate grating using given colormap
sequence.
getGrating1OverF: Modified to use showGratingSeq. Added help comments.
Now takes minphase into account when computing temporal frequency.
getDirectionReversals: Modified to use frame rate instead of refresh
rate. Capitalized optional argument names to facilitate use of
abbreviations. Added code to plot sequence as well as to animate
grating.
getGratingReversals.m: New function to produce Buracas like grating
reversals using output file like those produced by getGrating1OverF.
getDirectionReversals is now obsolete.
February 5, 2004
getGrating1OverF: Modified so that sequence starts from 0. Added polar
plot. Now runs fft on unmodified sequence so that we don't have high
frequencies due to the wrapping.
February 10, 2004
phaserand.c: New function to perform phase randomization of a movie
sequence using the 3D FFT from the FFTW libraries. This version
includes threading and was developed for 64-bit SGI IRIX. The
inverted FFT is normalized by the total number of pixels in the
movie sequence and the value of 128 (assume that is the mean
grayscale of the movie sequence. Now normalizes output images
to have similar mean grayscale to input images.
phaserandf.c: Single precision version of phaserand.c to run on
Mac OS X. Uses FFTW-fma libraries.
Makefile: For phaserand.c and phaserandf.c.
phaserand3d.m: Now leaves phase of DC component intact while scrambling
the rest.
February 11, 2004
phaserand.c: Moved index arithmetric outside for loop to reduce compute
time.
showGratingSeq: Now returns the sequence of graylevels for each distinct
pixel. Removed obsolete code that used palette sequences.
getGrating1OverF: Changed optional input argument MinPhase to MinTF.
Now generates a phase vector where the phase of the negative
frequencies are the complex conjugate of the positive frequencies.
Added another variable called lastphase instead of subtracting
1 from nphases and having to add 1 to it a couple of times. Now
plots the phase sequence including negative degrees to avoid
discontinuities in the sequence. Added 2nd axis on phase plot to
indicate palette indices. Improved PlotFFT code to consolidate
multiple operations into fewer lines. Removed phase plot. Plots
the FFT of the graylevels returned from showGratingSeq.
getGratingReversals: Fixed length of r used during initialization. Added
lastphase instead of subtracting 1 from nphases. Removed polar plot.
Added plots of the FFT of the graylevels returned from
showGratingSeq.
Februaru 12, 2004
showFFTPhaseDiffs.m: New function to illustrate the differences when
inverting a frequency domain signal with phase vectors that are
totally random and phase vectors where the second half is the
complex conjugate of the first half.
February 15, 2004
phaserand.c: Fixed bug that was not reading the input files correctly.
Added code to compute min and max of output so that we can make
sure that after shifting the mean to be the same as the input, the
range of gray levels is between 0 and 255. Added for-loop to
recompute phase randomized images if scale is smaller than 0.1
due to the occasional large negative number in the output (another
bug?).
February 16, 2004
phaserand.c: Added code to print out mag and phase of minimum element.
Februaru 17, 2004
phaserand.c: Fixed bug in code that scaled values so they were not
negative and had the same mean gray level as the input. Removed
code that printed out magnitude and phase of minimum element as
the minimum value is not related to single magnitude and phase.
April 5, 2004
gSS.m: Replaced code to save output in mat file with code to save data
using fwrite to reduce disk space by 50%.
April 8, 2004
getSurrogateSpikes: Added code to plot intermediate calculations used
to create spike trains. Added qscale input argument which changes
qt to probability instead of firing rate, the latter which divided
the probability by the bin size.
gSS: Removed code associated with dbflag and displayflag to optimize
performance.
plotRasters: New function used to plot rasters of data as well as
surrogates.
readSurrogateBin: New function used to read binary files created by
gSS function.
April 12, 2004
@FMagnitude: New class that computes the FFT magnitude of spike trains.
@FMagnitude/FMagnitude: Constructor function.
@FMagnitude/plot: Plots FFT magnitude along with standard deviation
without DC.
April 13, 2004
@FMagnitude/FMagnitude: Added code to make sure empty matrices are not
passed to nptSpikeTimesFFT.
gSS: Added rep info in printf statements.
April 16, 2004
getFunctionValues: Simplified to take fewer mandatory arguments so
this function can be called more easily by getFreeFiringRate2.
@refractory/refractory: Added code to parse new data structure and
call appropriate new functions (i.e. getFreeFiringRate2).
getFreeFiringRate2: New function that is modified from getFreeFiringRate
and works with the new data structure.
April 19, 2004
getFreeFiringRate2: Added rec output argument in case when we don't
really know the qt bin size. Updated help comments to change REC
input argument from mandatory to optional. Added 'frameavg'
optional input argument to average qt within a frame.
@refractory/refractory: Now stores qtbinsize, rtEdges, and repetitions
for each cell. Fixed typo in help comments for data.edges. Changed
qt, Wt, rt, rtEdges to cell arrays since they might be of different
length. Added wt field to help comments. Now initializes data
structure fields so there is no need to resize memory on the fly.
getSurrogateSpikes: Removed qscale optional input argument. Now uses
qtbinsize for each cell in input data structure. Modified code to
check length of qt for number of bins rather dividing duration by
qtbinsize since that might not be accurate. Updated to access
rtEdges as cell array.
@refractory/plot: Updated to access rtEdges as cell array.
April 21, 2004
@refractory/refractory: Specified units of qtbinsize in help comments.
Modified to work with new input data structure that stores
original_spiketrain in cell_info field. Modified to work with
nptdata functions. Added cellname field to identify cells.
getFreeFiringRate2: Modified to use new input data structure that
stores adjusted_spiketrain in cell_info field. Modified help
comments to specify units for optional input arguments. Fixed bug
in determining number of reps. Now takes into account that rtbinsize
is in units of seconds.
getSurrogateSpikes: Now takes into account that rtbinsize is in units
of seconds. Now clears the current figure if 'displayflag' is on.
@refractory/plot: Added description of other three kinds of plots in
help comments. Uncommented code that set the x-limits for the ISI
plot. Now labels plots with the name of the cell instead of the
number.
@catcell: New class that encapsulates Jonathan's data structure.
@catcell/catcell: Constructor function that also computes mean and
standard deviation of spike counts for each frame.
@catcell/plot: Plots the rasters as well as the variance versus mean
spike count.
April 22, 2004
catCompute: New function that loads data refractory object and generates
surrogate spike trains. Also computes and saves spike count mean
and standard deviation for each frame of the surrogates.
readGratingSequence: New function that reads phase sequence files
created by getGrating1OverF.m and getGratingReversals.m.
getFreeFiringRate2: Now returns number of bins in each frame.
@refractory/refractory: Now stores the number of bins in each frame
in data structure.
gSS: Fixed typo in fprintf call (used $i instead of %i).
April 25, 2004
@fano: New class to display Fano data.
@fano/fano: Constructor function for FANO class.
@catcell/get: New function that overloads get function of nptdata class
to set appropriate number of events according to varargin.
@catcell/catcell: Fixed typo in calling createEmptyObject when called
without arguments. Added scmean and scstd fields to data structure
when creating empty objects.
@catcell/plot: Added code to plot surrogate spike trains. Added code to
plot spike count mean and variance for surrogate data.
treCompute: New function to compute entropy for TRES/TREZ measurements.
April 26, 2004
treCompute: Fixed bug that was saving output files as filename.mat
instead of using the input argument.
April 27, 2004
@trentropy: New class to display spike time reliability data.
@trentropy/trentropy: Constructor function for TREntropy class.
getTREntropy: New function that computes entropy of histc output.
@catcell/subsref: New funtion that facilitates access to catcell
objects' data structure.
@fano/fano: Completed constructor function.
@fano/name2index: Copied from @nptdata/name2index with references to
nptdata changed to fano.
@fano/plot: Plot function for Fano objects.
@fano/plus: Overloaded plus operator for Fano objects.
@fano/ProcessSession: Overloaded ProcessSession function for Fano
objects.
@fano/subsref: New funtion that facilitates access to fano
objects' data structure.
treCompute: Fixed typo in comment.
@refractory/subsref: Modified to allow easy access to internal data
structure.
April 28, 2004
@fano/plot: Changed 'Cells' in title string to 'cells'.
@trentropy/plot: Changed 'Cells' in title string to 'cells'.
May 4, 2004
@catcell/get: Replaced surrogate sets constant with default optional
input argument 'SurrogateSets'.
@catcell/plot: Added plots to check spike count mean, variance and
fano factor for data versus surrogates. Replaced surrogate sets
per file constant and surrogate file basename with default optional
input arguments 'SurrogateSetsPerFile' and 'SurrogateBasename'.
Updated help comments to describe new plots and new optional input
arguments.
@fano/plot: Plots are now labelled as Fano instead of Entropy.
@refractory/plot: Added ability to plot 'rt', 'qt', and 'Wt' together.
@trentropy/trentropy: Wrapped long lines.
May 5, 2004
@catcell/catcell: Modified to compute spike latency with respect to
frame onset.
@catcell/plot: Modified to plot spike latency data. Will also compute
data if the requested bin sizes are different from what was
computed.
May 6, 2004
eventCompute: New function that computes event intervals of the
surrogate spike trains.
May 7, 2004
eventCompute: Added code to compute percentage of reps that have spikes
in both events making up a sub-stimulus interval. Modified to use
Jonathan's new code which gets rid of long output arguments.
@FMagnitude/FMagnitude: Added code to generate data automatically, load
and save objects as needed. Now works with new mat files of the cat
data.
@FMagnitude/plot: Added title to plots.
May 10, 2004
@FMagnitude/FMagnitude: Added help comments. Fixed bug in processing
data when data structure is passed as input argument.
@FMagnitude/plot: Added parsing of input arugments so this function can
be called without passing an extraneous numeric argument. Added
option to show DC amplitude.
@fano/ProcessCell: New function that replaces ProcessSession that is
necessary as a result of changes in the nptdata class.
@trentropy/ProcessCell: New function that replaces ProcessSession that
is necessary as a result of changes in the nptdata class.
@catcell/plot: Added some examples of InspectGUI usage in help comments.
May 12, 2004
@FMagnitude/FMagnitude: Removed 'keepNumeric' option from getOptArgs
since it is now the default. Now correctly saves the varargin
returned from getOptArgs.
@FMagnitude/plot: Removed 'keepNumeric' option from getOptArgs since it
is now the default.
@catcell/catcell: Now correctly saves the varargin returned from
getOptArgs.
@catcell/plot: Removed 'keepNumeric' option from getOptArgs since it is
now the default.
@fano/fano: Now correctly saves the varargin returned from getOptArgs.
@fano/plot: Removed 'keepNumeric' option from getOptArgs since it is now
the default.
@refractory/refractory: Now correctly saves the varargin returned from
getOptArgs.
@trentropy/trentropy: Now correctly saves the varargin returned from
getOptArgs.
@trentropy/plot: Removed 'keepNumeric' option from getOptArgs since it
is now the default.
May 13, 2004
eventCompute: Fixed bug that created 1000x1000 cell array instead of
1000x1 cell array. Added input argument to specify whether event
upper thresholds should be taken from the data or computed for each
surrogate. Added input argument to specify output filename.
@catcell/plot: Added option to look at distribution of event intervals.
May 14, 2004
@catcell/plot: Added option to plot multi-taper power spectrum density
of spike trains. Added lines to Latency plot to indicate refresh
intervals.
May 26, 2004
@catcell/plot: Fixed bug that tried to plot line for 95th percentile
of event intervals for the surrogates when the surrogate file is not
present.
@variability: New class that combines the fano and trentropy objects
so we can plot and compute correlations between fano data and
trentropy data.
@variability/variability: Constructor for new class. Now keeps the
directory path so we can plot surrogate data if necessary.
@variability/name2index: Function that maps names to indices.
@variability/plot: Merged plot functions from fano and trentropy
classes. Added plots to look at Fano versus trentropy z-scores and
mean versus entropy.
@variability/plus: Function to add objects.
@variability/ProcessCell: Batch processing function.
@variability/subsref: Function to access data.
May 31, 2004
@variability/ProcessCell: Fixed bug in creating empty object - now
correctly calls variability instead of fano.
June 14, 2004
@variability/variability: Added code to process grating data. Added code
to search for data.mat files instead of *g*c.mat. Added code to
figure out cell names for cells with data.mat files.
@catcell/catcell: Added code to search for data.mat files instead of
*g*c.mat. Added code to figure out cell names for cells with
data.mat files.
August 25, 2004
@sparsity/plot.m: Removed code that changed object data. Fixed histogram
edges so the edges used in the calculation is also used in the plot.
Added 'histc' option to bar plot to align bars to align the edges
correctly.
@FiringRate/plot.m: Removed code that changed object data. Fixed histogram
edges so the edges used in the calculation is also used in the plot.
Added 'histc' option to bar plot to align bars to align the edges
correctly.
@responsiveness/plot.m: Removed code that changed object data. Fixed
histogram edges so the edges used in the calculation is also used in
the plot. Added 'histc' option to bar plot to align bars to align
the edges correctly.
@events/plot: Removed code that changed object data. Fixed histogram
edges so the edges used in the calculation is also used in the plot.
Added 'histc' option to bar plot to align bars to align the edges
correctly.
@responsiveness/private/CalcResponsiveness: Changed code back to return
p_dist instead of the distribution of R values.
@adjSpikes/get.m: Broke long command line into two for better
legibility.
August 27, 2004
@FiringRate/plot.m: Changed hist call to histcie to better control bin
limits used to calculate the histogram and to make sure the
histogram plot does not have a separate value at the maximum.
Changed semi-log plots to use line plots instead of bar plots.
@adjSpikes/plot.m: Added FMarkersOff option to turn off frame markers
when plotting rasters.
@responsiveness/plot.m: Changed hist call to histcie.
@sparsity/plot.m: Changed hist call to histcie.
@sparsity/plot.m: Changed hist call to histcie.
@FMagnitude/FMagnitude.m: Added code to use ispikes object to create
object. Mean and std in data are now stored in columns to facilitate
plotting data from multiple cells.
@FMagnitude/plot.m: Removed mandatory second input argument and added
code to figure out if we are to plot individual data or aggregate
data. Added code to plot aggregate data.
@FMagnitude/plus.m: New function to create aggregate FMagnitude object.
@FMagnitude/subsref.m: New function to access data in FMagnitude
objects.
August 30, 2004
@FMagnitude/plot.m: Added code to normalize all means before plotting so
as to provide comparisons across data series.
September 8, 2004
@FMagnitude/FMagnitude.m: Now uses adjSpikes instead of ispikes so we
can compute time-frequency data, which are averaged over
repetitions. Added code to store data for time-frequency plots. Now
passes varargin to adjSpikes so we can make use of the SaveLevels
and RedoLevels functionality. Added remove optional input argument
to getOptArgs to remove arguments specific to this function. Now
passes varargin to nptSpikeTimesFFT so options for that function can
be specified when the FMagnitude object is being instantiated. Code
to store time-frequency data for old data structures might need
revision.
@FMagnitude/plot.m: Added option and code to plot time-frequency data.
@FMagnitude/plus.m: Added code to add time-frequency data.
@adjSpikes/adjSpikes.m: Raster field in data now stores spike times in
columns rather being a structure containing spike times in rows.
Storing spike times in columns makes it easier to call
nptSpikeTimesFFT and should be easier to plot as well. Removing the
need for the structure simplifies working with the data. Added
rasterIndex field to keep track of which rasters go with which data
set.
@adjSpikes/plus.m: Added code to add newly modified raster field and
newly added rasterIndex field.
@adjSpikesXCorr: New class to compute cross-correlations along with
shift-predictor.
@adjSpikesXCorr/adjSpikesXCorr.m: Constructor function for new
adjSpikesXCorr class.
@adjSpikesXCorr/get.m: Get function for new adjSpikesXCorr class.
@adjSpikesXCorr/plot.m: Plot function for new adjSpikesXCorr class.
@adjSpikesXCorr/plus.m: Plus function for new adjSpikesXCorr class.
@adjSpikesXCorr/subsref.m: Subsref function for new adjSpikesXCorr
class.
September 9, 2004
@FMagnitude/FMagnitude.m: Now uses different name for varargin returned
by getOptArgs since nargin is dependent on varargin so if we remove
certain arguments from it using getOptArgs, the lengths will
change. The function nargin is also called just once and the result
stored instead of calling it multiple times.
@adjSpikes/adjSpikes.m: Now sets the number and holdaxis to 1 and 0
respectively when creating nptdata object. This allows the adjSpikes
objects to be added without a warning from nptdata/plus.
@adjSpikes/plus.m: Revised using the template in dirfiles. This was
necessary to avoid errors caused by the check for empty objects
being in the wrong place. Also uses new functionality in the
concatenate function to correctly add the raster field together.
@adjSpikes/plot.m: Uncommented code that changed directory to the proper
directory in order to plot data. Not sure why it was commented out
in the last version. Now correctly selects only the relevant data
in adjFramePoints and adjSpiketrain to pass to CreateRaster.
September 27, 2004
@adjSpikesXCorr/adjSpikesXCorr.m: Modified code to compute cross-
correlations using the histogram of spike time differences ala
Nirenberg & Latham (1998), which is very much faster than creating
spike trains and calling Matlab's xcorr. Added code to perform
Kolmogorov-Smirnov test on xcorr and shift-predictor to see if the
two distributions are significantly different. The significance
level can be specified using the KSAlpha optional input argument.
Changed default BinSize to 1. Added code to do Gaussian fit on bins
that are significant using binomial statistics. Added option to
specify bins for computing excess correlated fraction since the new
way of computing cross-correlations has bins on either side of 0
instead of having a bin at 0. Now stores string specifying if
distributions are not different, if center of Gaussian fit is not
within fit points (i.e. data inside fit points is a straight line),
if no fit points were found, or the width and center of the Gaussian
fit.
@adjSpikesXCorr/plot.m: Added option to plot differences between cross-
correlation data and shift-predictor, as well as the Gaussian fit.
Now creates text box with result of Gaussian fit, ECF, and KS stat.
@adjSpikesXCorr/plus.m: Now adds new fields kspvalue, ksstat, legendstr,
fitgoodness, fresult, xcwidth, pciCounts.
@latency: New class that computes latency of spikes relative to stimulus
frame onset.
@latency/latency.m: Constructor for new latency class. Code mostly from
@catcell/catcell.
@latency/plot.m: Plot function for new latency class. Code mostly from
@catcell/plot.
@latency/plus.m: Plus function for new latency class.
@latency/subsref.m: Subsref function for new latency class.
September 28, 2004
@FiringRate/private/CalcFiringRate.m: Modified to include the spike
counts from the last frame. Optimized code by replacing for loops
with single call to histcie, followed by a reshape.
September 30, 2004
@adjSpikes/adjSpikes.m: Modified to pass on optional input arguments to
objects that are instantiated. Modified call to stiminfo from
stiminfo('auto',1,'save') to stiminfo('auto',vargin{:}) to remove
redundant second argument and hardcoded save option. Added comment
about not passing optional input arguments to ispikes since redo
does not quite work with ispikes from the cluster directory yet.
@FiringRate/firingRate.m: Modified to pass on optional input arguments
to object that are instantiated. Modified call to stiminfo from
stiminfo('auto',1,'save') to stiminfo('auto',vargin{:}) to remove
redundant second argument and hardcoded save option. Added
SessionDir to nptdata before inheriting from it.
@catcell/plot.m: Modified MTTime optional input argument to MTBinSize
to better describe what it represents.
October 1, 2004
@adjspikes: Changed adjspikes to lower case so objects saved on Windows
will work on non-Windows machines.
@adjspikes/adjspikes.m:
@adjspikes/display.m: Changed case of adjspikes.
@adjspikes/get.m: Changed case of adjspikes.
@adjspikes/plot.m: Changed case of adjspikes. Changed catcell references
to adjspikes.
@adjspikes/plus.m: Changed case of adjspikes.
@adjspikes/subsref.m: Changed catcell references to adjspikes.
@jointevents/jointevents.m: Changed case of adjspikes.
@latency/latency.m: Changed case of adjspikes.
@responsiveness/responsiveness.m: Changed case of adjspikes.
@sparsity/sparsity.m: Changed case of adjspikes.
createCatAVI.m: Changed case of adjspikes.
@adjspikespsth: Changed adjspikespsth to lower case so objects saved on
Windows will work on non-Windows machines.
@adjspikespsth/adjspikespsth.m: Changed case of adjspikespsth. Changed
case of adjspikes.
@adjspikespsth/get.m: Changed case of adjspikespsth.
@adjspikespsth/plot.m: Changed case of adjspikespsth.
@adjspikespsth/private/CreateRaster.m: Changed case of adjspikespsth.
@adjspikespsth/private/adjPSTH.m: Changed case of adjspikespsth.
@adjspikespsth/private/adjPSTHOLD.m: Changed case of adjspikespsth.
@adjspikesxcorr: Changed adjspikesxcorr to lower case so objects saved
on Windows will work on non-Windows machines.
@adjspikesxcorr/adjspikesxcorr.m: Changed case of adjspikesxcorr. Added
check for empty xcdiplus before trying to use it. If xcdiplus is
empty, fitgoodness, fresult and xcwidth are initialized to empty
values. Changed case of adjspikes.
@adjspikesxcorr/get.m: Changed case of adjspikesxcorr.
@adjspikesxcorr/plot.m: Changed case of adjspikesxcorr.
@adjspikesxcorr/plus.m: Changed case of adjspikesxcorr.
@adjspikesxcorr/subsref.m: Changed case of adjspikesxcorr.
@firingrate: Changed firingrate to lower case so objects saved on
Windows will work on non-Windows machines.
@firingrate/firingrate.m: Changed case of firingrate.
@firingrate/plot.m: Changed case of firingrate.
@firingrate/plus.m: Changed case of firingrate.
@firingrate/subsref.m: Changed case of firingrate.
@firingrate/private/CalcFiringRate.m: Changed case of firingrate.
@fmagnitude: Changed fmagnitude to lower case so objects saved on
Windows will work on non-Windows machines.
@fmagnitude/fmagnitude.m: Changed case of fmagnitude.
@fmagnitude/plot.m: Changed case of fmagnitude.
@fmagnitude/plus.m: Changed case of fmagnitude.
@fmagnitude/subsref.m: Changed case of fmagnitude.
October 5, 2004
@firingrate/firingrate.m: Added 'CaseInsensitive' to nptDir call to
check for presence of previously saved object since the case
of the filename might not change even if we re-save the object.
@adjspikespsth/adjspikespsth.m: Added 'CaseInsensitive' to nptDir call
to check for presence of previously saved object since the case
of the filename might not change even if we re-save the object.
@adjspikes/adjspikes.m: Added 'CaseInsensitive' to nptDir call to check
for presence of previously saved object since the case of the
filename might not change even if we re-save the object.
October 11, 2004
@refractory/plot.m: Fixed typo in spelling of linear in help comments.
@refractory/refractory.m: getOptArgs now stores the modified varargin
in varargin2.
getFreeFiringRate2.m: Removed unnecessary keepNumeric flag in call to
getOptArgs. Added code to remove spikes that occurred in the blank
frame of the old data since it was causing problems with the
insertion of the recovery function wherever there are spikes.
@refractory/plot.m: Removed mandatory second argument so that this
function will work with nptdata/plot.
@refractory/refractory.m: Added code to compute refractory object using
stiminfo, adjspikes, and isi objects.
@adjspikesxcorr/plot.m: Added code to plot significant bins in
difference between x-corr and shift predictor (not complete).
October 13, 2004
Removed directories @adjSpikes, @adjSpikesPSTH, @adjSpikesXCorr,
@FiringRate, @FMagnitude on CVS server by hand since SmartCVS
on Windows is unable to distinguish between lowercase and
upppercase.
October 14, 2004
@firingrate/private/CalcFiringRate.m: Corrected typo (colon at the end
of the line instead of semi-colon).
@adjspikespsth/adjspikespsth.m: Removed fields sessionname, groupname,
cellname since they are no longer in adjspikes.
October 15, 2004
@latency/plot.m: Added title to plots.
October 19, 2004
@variability/variability.m: Now saves the modified varargin in
varargin2. Added code that use adjspikes and stiminfo objects in
calculating variability. Now sets flag after checking to see if the
session we are processing is a grating session. Added code to check
for the presence of obj_type in the stimulus_info structure since
the field is not present in stiminfo objects. Now correctly appends
'.mat' when checking for the presence of surrogate data files. Added
code that does not assume name of variable saved in surrogate data
files.
October 20, 2004
@variability/plot.m: Added mean vs Fano plot, including 2D histogram.
Added plot of raw entropy, including option to also plot entropy of
surrogate data. Re-organized optional input arguments so we can just
specify either 'Fano'/'Entropy' and 'SurrPercent'/'SurrZScores' to
reduce number of cases we need to check. Added inputs to specify
histogram min, max and step size separately for both x- and y-axes.
Added code to alter plot colors, symbols and size for data and
surrogates using optional input arguments.
October 21, 2004
@adjspikes/plot.m: Now uses dirLevel to create shortname for the title.
October 22, 2004
@variability/plot.m: Added option to select z-score or percent threhold
for all plots. Added different colors for points above and below the
spike count threshold, and for points which exceed and do not exceed
the specified threshold. Added flags plotAllData and plotOneData so
we don't have to keep checking ~isempty(Args.NumericArguments. Moved
code that checked for points above and below the spike count
threshold to the top since it is common to all options. Added option
to change the font size in axes tick lablels, x- and y-labels, and
title. Now uses line command instead of errorbar to plot surrogate
data so the horizontal bars at the ends of errorbars won't overlap
with each other. Now uses parameter-value pairs to specify marker
and color when using the plot command so we can use any color
instead of being limited to the 7 colors in LineSpec. As a result,
we now also have a LineStyle option but it is probably never going
to be used as an optional input argument but rather a way of listing
the constants used in the function. Added code to draw lines
separating points from different cells in population plots. Added
option to use time of frame points from adjspikes object so we can
use linkedzoom with the adjspikes object to inspect the rasters.
Fixed bug in code that checked for points above and below the spike
count threshold so it uses the threshold in Args instead of 1. Moved
code that separated indices into signifcant/not-significant, above/
below spike count threshold to the top so it is not redundantly in
every option. Created concatenated matrix containing the different
sets of indices so we can call histcie just once. Moved code that
changed directory to the cluster directory to load surrogate data or
to get frame times to the top so it is not redundantly in several
options. The variable xvals now initialized properly to either be in
frame numbers or time for all options. Each option now sets strings
for title, x- and y-labels and the actual label command is now at
the end so it is easier to modify if we add options like 'FontSize'.
Moved "axis tight" command to the end so it is not scattered
throughout the code.
October 23, 2004
@variability/plot.m: Now checks plotCellSep flag at the end to see if
lines need to be drawn to indicate where the frames from one cell
ends and the other begins. Fixed histogram code to properly plot all
four types of bar plots using the stacked option.
October 26, 2004
plotRasters.m: Modified to use plot instead of line to draw rasters.
@refractory/plot.m: Now does not show plot legends unless the
ShowLegend option is specified. Added option to display surrogate
spike trains. Now uses dirLevel to shorten name for display in
title.
@variability/plot.m: Consolidated code to create histogram and other
common plot types into section at the end. The plotType argument is
now used to pick between the different types of plots. Now properly
loads surrogate data when ShowSurrogateData is used with the default
option, which is to plot mean vs variance.
January 5, 2005
@firingrate/firingrate.m: Fixed case when calling CalcFiringRate.
@frdiff: New class to compute differences in firing rates among clusters
within a group.
@frdiff/frdiff.m: Constructor function for new frdiff class.
@frdiff/get.m: Get function for new frdiff class.
@frdiff/plot.m: Plot function for new frdiff class.
@frdiff/plus.m: Plus function for new frdiff class.
@frdiff/subsasgn.m: Subsasgn function for new frdiff class.
@frdiff/subsref.m: Subsref function for new frdiff class.
January 6, 2005
@frdiff/frdiff.m: Now computes and stores the sum of differences and
the magnitude of the vector sum.
@frdiff/plus.m: Updated to add new fields.
@frdiff/plot.m: Added code to plot cummulative data.
January 7, 2005
@frdiff/frdiff.m: Now stores firing rates instead of the objects so we
can run the vecsimilarity calculation more easily. Now calls
vecsimilarity to compute vmag field. Added vang field to compute
similarity index ala Vinje and Gallant, 2000. Added code to
rearrange differences for 3 vectors so that the order is the same as
the other cases. Now computes the mean of the sum of differences to
normalize for differences in number of frames.
@frdiff/plus.m: Updated to add vang field.
January 12, 2005
@adjspikes/get.m: Added optional input argument to modify the default
group plot property of this object. This allows the adjspikes
rasters to be plotted in a stacked manner instead of overplotting.
@adjspikes/plot.m: Changed showTitle option to HideTitle since it wasn't
being used. Removed linkedZoom option since it is not being used.
Removed irrelevant optional input arguments in call to getOptArgs.
Added option to not add a title to the plot so that when the rasters
are plotted in a stacked fashion, the titles won't get in the way.
@frdiff/frdiff.m: Changed frdsum field to frdmean to better reflect
the calculations. Added frdmax field to save the maximum difference
between firing rates. Now uses variable to save current directory
instead of calling pwd multiple times.
@frdiff/plot.m: Added optional input arguments to create plots of
different data. Added option to plot histograms either by specifying
the number of bins or the bins to be used. Now appropriately labels
axes and titles. Added option to create plots with 2 y axes.
@frdiff/plus.m: Updated to use frdmean field instead of frdsum and now
adds the frdmax fields.
@firingrate/firingrate.m: Remove unused fields dlist and setIndex.
Now correctly creates a firingRate field in the createEmptyObject
function. Now saves output of pwd in a variable so it does not have
to be called multiple times.
@firingrate/plot.m: Changed showTitle option to HideTitle since it was
not being used. The HideTitle prevents the title from being created
which may be useful when creating composite plots with InspectGUI.
Now plots time course of PSTH by default (although labels in the
default case are not appropriate).
@firingrate/private/CalcFiringRate.m: Now correctly removes edge effects
from the beginning and the end of the vector produced by
convolution.
January 18, 2005
@frdiff/frdiff.m: Added code to compute mean firing rate from a pair or
more cells and then to compute the mean and max differences based on
Poisson differences from the mean, i.e. assuming the standard deviation
is the square root of the mean.
@frdiff/plot.m: Added options to specify bin size of histograms. Added
comment to clarify computation of the mean difference between more
than 1 pair of cells. Added code to plot control data. Now creates the
appropriate title for histograms.
@frdiff/plus.m: Added code to add fields for control data.
@variability/plot.m: Added option to remove lines separating data from
different cells. This makes the plot a little more legible when the
overall size is small.
February 3, 2005
@adjspikes/plot.m: Now saves current directory instead of calling pwd
multiple times. Now returns to original directory so the user doesn't
suddenly find themselves in some unexpected directory.
@firingrate/firingrate.m: Removed unused fields dlist and setIndex. Added
meancounts, timebins, and binsize fields to save the mean rate, the
time bins used to compute the histogram and the binsize used to create
the histogram bins. This makes it easier to create plots of firing
rates as a function of time.
@firingrate/plus.m: Now adds meancounts, timebins, binsize fields.
@firingrate/plot.m: Removed unused HideTitle option. Added PSTH option to
plot firing rate as a function of time. Removed extraneous characters
"fi" at end of nptSubplot call.
@firingrate/private/CalcFiringRate.m: Now returns meancounts and timebins
so we can easily display the psth as a function of time, which then
allows linkedzoom to work with objects like adjspikes. Reverted code
used to compute frame level spike counts with overlap to last working
version since the new version seems to be incorrect. Fixed bug in
Repetitions code that would generate bins that were not monotonically
increasing.
@latency/plot.m: Removed SubPlot option since that option is now implied
when the function is called without numeric arguments.
@refractory/plot.m: Added LabelsOff option to work with nptdata/plot.
Removed description of plot in title to make it better when used with
nptdata/plot to create subplots.
February 7, 2005
spikeRecovery.m: Now returns pfpts which may be changed in the process of
fitting using the PeakRatio and FitWindow criteria. Added option to do
running fits to find best fit and to display and pause the fits. Added
option to specify window to do fit (ala Berry & Meister, 98). Added
option to check the ratio between the value at the peak and the value
at expfitmax. Added code to check for invalid fits to prevent problems
with the plot function later.
@refractory/refractory.m: Now uses pfpts returned by the spikeRecovery
function.
February 14, 2005
@frdiff/plot.m: Added option to do plotyy plots with mean and max, vang and
vmag. Added code to alter the plot symbols when using plotyy so the
data points are apparent. Added the mean value in the title for
histograms. Now computes the histogram on the ctrldata only if it is
not empty.
February 16, 2005
spikeRecovery.m: Removed curve fit output argument since it was smoothing
out the absolute refractory period and thus possibily leading to
artificially short ISI's. Removed the PeakRatio option which was
introduced to differentiate it from the FitWindow option since the
PeakRatio also uses the FitWindow argument. Now computes the
Peak-to-End ratio in log coordinates to make it more consistent with
the rest of the calculations. Added code to locate the maximum point by
finding the first point that crosses a specified percentile of the
maximum. This helps to prevent cases of spurious maximums at large
latencies. Added code to do successive fits until the slope of the
exponential is negative if the Peak-to-End ratio is below threshold.
Now uses new npt function zerolog to avoid log of zero errors. Added
code to check for NaN's when grabbing the value at expfitmaxpts and
iteratively decreasing the data points until a valid value is found.
Moved code in fitWindow subfunction back to the FitWindow option since
it is now only used in that case.
refractory.m: Now no longer uses the curve fit object that used to be
returned by the spikeRecovery function.
February 17, 2005
refractory.m: Added the curve fit object back since the recovery function is
simply too noisy if derived from the raw histogram. Now passes the raw
recovery points to getFreeFiringRate2 as well so that can be used to ensure
the absolute refractory period is observed. Now also passes the isibinsize
to getFreeFiringRate2 to make sure that the function values generated from
the curve fit object use the same bin sizes that were used to compute the
curve fit object.
spikeRecovery.m: Added the code to compute the curve fit object back since the
recovery function is simply too noisy if derived from the raw histogram.
Fixed bug that was adding 1 to pfpts, which caused the refractory/plot
function to overshoot the end limit since it was using pfstart + pfpts to
obtain pfend.
getFreeFiringRate2.m: Renamed qtbinsize to ISIBinSize, which is now passed to
this function by refractory.m to make sure that the bins size used in the
isi histogram computed in deriving the recovery function is similar to the
one used to compute the free-firing rate. ISIBinSize is also now used to
generate the function values from the curve fit object. The function values
obtained from the curve fit object are combined with the data points of the
recovery function to ensure that the absolute refractory period is observed.
February 24, 2005
@firingrate/plot.m: Added option to create heterogeneity plots of the peak
and mean firing rates.
@firingrate/private/CalcFiringRate.m: Fixed bug that was not converting spike
counts to rates for frame level calculations with no overlaps.
@latency/plot.m: Replaced the dummy optional argument with real optional input
arguments to look at the auto-correlation of the latency histogram, the
cross-correlation of the latency histogram with the refresh, and the FFT
of the latency histogram.
@firingrate/heterogeneity.m: New function to return the organize data from the
object into groups using nptdata/groupDirs.
@refractory/subsasgn.m: New function to modify object data.
getGrating1OverF.m: Function moved to npt/scripts/miscellaneous.
getGratingReversals.m: Function moved to npt/scripts/miscellaneous.
showGratingSeq.m: Function moved to npt/scripts/miscellaneous.
March 9, 2005
@frdiff/frdiff.m: Added code to compute the correlation coefficient between
firing rates.
@frdiff/plus.m: Added code to add the fields used to store the result of the
correlation coefficient calculation.
@adjspikesxcorr/adjspikesxcorr.m: Added code to compute sliding cross
correlation. Added code to generate surrogates to compute significance of
sliding cross correlation.
@adjspikesxcorr/plus.m: Modified xc and sxc fields to be added together using
the concatenate function instead of [] since the length of xc is variable
if the sliding cross correlation is calculated.
@adjspikesxcorr/plus.m: Added code to plot data of sliding cross correlation.
This function used to use the lags field to identify xcorr data but this is
will no longer work so need to use some other field.
@adjspikesxcorr/private/asxcSurrSynchrony.m: New function to generate
surrogates and compute cross correlations for a frame.
@adjspikesxcorr/private/combineSurrSynchrony.m: New function to combine the
data from all the surrogates generated to compute significance of cross
correlations.
@adjspikesxcorr/private/computeSynchrony.m: New function to compute the cross
correlations of two histogrammed spike train.
March 10, 2005
ccwrapper: Added shell script to create surrogates with relative refractory
period and compute their spike count variability to CVS. Fixed code
so it will correctly take a list of directories as input arguments.
trewrapper: Added shell script to compute spike time variability of surrogate
spike trains with a relative refractory period to CVS. Fixed code
so it will correctly take a list of directories as input arguments.
eventwrapper: Added shell script to compute events of surrogate spike trains
with a relative refractory period to CVS.
gSSwrapper: Now creates symbolic link to rfd data.
@adjspikesxcorr/private/asxcSurrSynchrony.m: Added code to explicitly convert
arguments to numbers so that we can compile this function into a standalone
executable. Added code to check for frames with no spikes. Added code to
compute for more than 1 frame since the jobs on ogier were taking too little
time so not all the nodes were being used.
asxcwrapper: New shell script to submit queue jobs to compute surrogates for
each frame. Now properly encapsulates the command that produces the
jobid with `. Fixed bug that was not incrementing while loop variable.
Fixed missing quotes from the command to combine surrogate data. Modified to
pass starting and ending frame numbers to asxcSurrSynchrony. Modified to use
the beforeok depend syntax in qsub instead of the afterok depend syntax
since that required a string that was too long. Fixed bug that was using
framen variable which has been replaced by startframe and endframe. Fixed
bug that was missing a space between @ and endframe.
@adjspikesxcorr/private/combineSurrSynchrony.m: Modified to convert arguments
explicitly to numbers.
@adjspikesxcorr/adjspikesxcorr.m: Added input argument for specifying number of
frames per job when calling the shell script to generate the surrogates.
Now stores the name of the shell script in Args. Added missing argument for
name of final surrogate file. Fixed typo in spelling of WaitForSurrogates.
Added code to run shell script in the background so we don't have to wait
for the shell script to finish submitting all the jobs.
@adjspikesxcorr/plus.m: Added \n character in warning.
March 11, 2005
@adjspikesxcorr/adjspikesxcorr.m: Added help comments about how data fields are
used when the Sliding option is used. Added code to compute surrogate data.
Now correctly specifies full name of surrogate file so that ispresent is
able to find it. Added code to re-save object if surrogate data was added to
the object. Fixed bug that was adding a field named ActualBinSize to the
data structure.
@adjspikesxcorr/plot.m: Added Sliding flag to temporarily identify objects
computed with the Sliding option. The object should be modified to retain
the Args structure used to generate the object. I am holding off on this
since I still have some old adjspikesxcorr objects that I would like to
take a look at. Added code to create plot of surrogate histogram using
imagesc, with data values plotted on top. Added code to create plot of
z-score distributions using HistMin and HistStep arguments.
March-16-2005
@latency/plot.m: Added the Color input argument so that this function can be
used with the nptgroup/plot function to create group plots.Now uses
'ShortName' in the title in every case.
@adjspikesxcorr/adjspikesxcorr.m: Added code to use dirLevel(0,'GetClusterDirs')
to generate ClusterDirs from the current directory if none were passed in.
Surrogate histogram bins now go all the way to the maximum of the data so
we can see the data along with the surrogate histograms when we plot them
on top of each other.
@adjspikes/plot.m: Added Interleaved, GroupPlots and GroupPlotIndex input
arguments to create plots where the rasters of a group of cells are
interleaved to increase visibility.
@firingrate/firingrate.m: Now uses the binsize returned from CalcFiringRate to
initialize data.binsize since there was a problem of data.binsize being
'frame' when the default arguments are used. This caused an error in the
plot function which tries to convert spike count values into rates using
the data.binsize value.
@adjspikesxcorr/plus.m: Commented out code that checked if lags vectors were
the same since they will not be the same when the Sliding option is used.
@adjspikesxcorr/plot.m: Fixed bug that failed to initialize the lagslength
variable.