archive-org.com » ORG » C » CHRONUX.ORG

Total: 412

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • Description of mtfftpb
    process cohmatrixpb Multi taper coherency matrix binned point process mtdspectrumpb Multi taper spectral derivative binned point process mtspectrumpb Multi taper spectrum binned point process mtspectrumsegpb Multi taper segmented spectrum for a univariate binned point process SOURCE CODE 0001 function J Msp Nsp mtfftpb data tapers nfft 0002 Multi taper fourier transform binned point process data 0003 0004 Usage 0005 0006 J Msp Nsp mtfftpb data tapers nfft all arguments required 0007 Input 0008 data in form samples x channels trials or single vector 0009 tapers precalculated tapers from dpss 0010 nfft length of padded data 0011 Output 0012 J fft in form frequency index x taper index x channels trials 0013 Msp number of spikes per sample in each channel 0014 Nsp number of spikes in each channel 0015 0016 if nargin 3 error Need all input arguments end 0017 data change row to column data changes data stored as a row vector to a column vector 0018 N C size data size of data 0019 K size tapers 2 size of tapers 0020 tapers tapers ones 1 C add channel indices to tapers 0021 H fft tapers nfft 1 fourier transform of the tapers 0022 Nsp sum data 1

    Original URL path: http://www.chronux.org/Documentation/chronux/spectral_analysis/pointbinned/mtfftpb.html (2015-03-27)
    Open archived version from archive


  • Description of specscope
    ai clear acq ai 0236 end 0237 0238 Clean up the figure 0239 delete fig 0240 delete gcf 0241 0242 if nargout 0243 save up to ten minutes data preallocated 0244 fprintf Saving output data n 0245 outdata outdata 1 floor acq samples acquired 0246 end 0247 0248 return 0249 0250 0251 0252 0253 Functions called 0254 0255 0256 0257 0258 0259 0260 Handle Keypresses 0261 0262 0263 Handle figure window keypress events 0264 function keypress varargin 0265 0266 global acq 0267 keypressed get gcf CurrentCharacter 0268 0269 ignore raw control shift alt keys 0270 if keypressed 0271 0272 Save current frame as gif 0273 if strcmp keypressed g 0274 saveas acq fig sprintf frame d png acq times length acq times 0275 end 0276 0277 Offset changes 0278 increment 1 0279 if strcmp keypressed l 0280 acq offset acq offset increment 0281 elseif strcmp keypressed o 0282 acq offset acq offset increment 0283 0284 Scale changes 0285 elseif strcmp keypressed x 0286 acq scale acq scale increment 0287 elseif strcmp keypressed s 0288 acq scale acq scale increment 0289 0290 Reset defaults 0291 elseif strcmp keypressed d 0292 defaults 0293 acq restart 1 0294 Normalize spectra 0295 elseif strcmp keypressed n 0296 request normalize 0297 0298 Quit 0299 elseif strcmp keypressed q 0300 request quit 0301 0302 Pause 0303 elseif strcmp keypressed p 0304 request pause 0305 0306 Help 0307 elseif strcmp keypressed h 0308 audio instr 0309 0310 Change colormaps for 0 9 a c 0311 elseif strcmp keypressed 0 0312 colormap jet 0313 elseif strcmp keypressed 1 0314 colormap bone 0315 elseif strcmp keypressed 2 0316 colormap colorcube 0317 elseif strcmp keypressed 3 0318 colormap cool 0319 elseif strcmp keypressed 4 0320 colormap copper 0321 elseif strcmp keypressed 5 0322 colormap gray 0323 elseif strcmp keypressed 6 0324 colormap hot 0325 elseif strcmp keypressed 7 0326 colormap hsv 0327 elseif strcmp keypressed 8 0328 colormap autumn 0329 elseif strcmp keypressed 9 0330 colormap pink 0331 elseif strcmp keypressed a 0332 colormap spring 0333 elseif strcmp keypressed b 0334 colormap summer 0335 elseif strcmp keypressed c 0336 colormap winter 0337 end 0338 0339 update display 0340 0341 end 0342 return 0343 0344 0345 Defaults 0346 0347 0348 Reset defaults 0349 function defaults 0350 global acq 0351 acq params raw tapers 2 3 0352 acq moving window 0 02 0 02 0353 acq params tapers dpsschk acq params raw tapers round acq params Fs acq moving window 1 acq params Fs 0354 acq offset 0 0355 acq scale 64 0356 acq display size 3 0357 acq params fpass 50 8000 0358 acq deriv 1 0359 acq log 1 0360 acq bgsub 1 0361 acq params pad 0 0362 acq normalize 2 0363 return 0364 0365 function update display 0366 global acq 0367 set acq tapers ui String sprintf 0f 0f acq params raw tapers 1 acq params raw tapers 2 0368 set acq window ui String sprintf 2f 2f acq moving window 1 acq moving window 2 0369 set

    Original URL path: http://www.chronux.org/Documentation/chronux/spectral_analysis/specscope/specscope.html (2015-03-27)
    Open archived version from archive

  • Description of close
    leaks resources GOOD code vr videoReader vr close vr clear vr okay but not needed After calling CLOSE VR should not be used any more vr videoReader vr close vr next vr BAD vr videoReader close vr BAD should reassign result to vr to be safe next vr BAD SEE ALSO videoReader Copyright c 2006 Gerald Dalley See MIT txt in the installation directory for licensing details especially when using this library on GNU Linux CROSS REFERENCE INFORMATION This function calls This function is called by SOURCE CODE 0001 function vr close vr 0002 VR CLOSE VR 0003 Closes video VR and releases any system resources necessary to access it 0004 e g threads file handles etc Do NOT just clear a videoReader 0005 object without first closing its handle 0006 0007 BAD code typically will leak system resources 0008 vr videoReader 0009 0010 clear vr leaks resources 0011 0012 GOOD code 0013 vr videoReader 0014 vr close vr 0015 clear vr okay but not needed 0016 0017 After calling CLOSE VR should not be used any more 0018 vr videoReader 0019 vr close vr 0020 next vr BAD 0021 vr videoReader 0022 close vr BAD should reassign result to

    Original URL path: http://www.chronux.org/Documentation/chronux/fly_track/videoIO/videoIO_2007a/@videoReader/close.html (2015-03-27)
    Open archived version from archive

  • Description of fig6_4
    REFERENCE INFORMATION This function calls This function is called by runbook SOURCE CODE 0001 Local Regression and Likelihood Figure 6 4 0002 Author Catherine Loader 0003 0004 Local smooth of CO2 dataset Estimate the main trend 0005 then use periodic smoothing of the residuals to estimate 0006 the annual effect Add main trend and periodic components 0007 to get overall smooth 0008 0009 A periodic smooth is specified by style

    Original URL path: http://www.chronux.org/Documentation/chronux/locfit/Book/fig6_4.html (2015-03-27)
    Open archived version from archive

  • Description of mtfftpt
    per sample in each channel Nsp number of spikes in each channel CROSS REFERENCE INFORMATION This function calls This function is called by CrossSpecMatpt coherencypt Multi taper coherency point process times cohmatrixpt Multi taper coherency matrix point process times mtdspectrumpt Multi taper spectral derivative point process times mtspectrumpt Multi taper spectrum point process times mtspectrumsegpt Multi taper segmented spectrum for a univariate binned point process SOURCE CODE 0001 function J Msp Nsp mtfftpt data tapers nfft t f findx 0002 Multi taper fourier transform for point process given as times 0003 0004 Usage 0005 J Msp Nsp mtfftpt data tapers nfft t f findx all arguments required 0006 Input 0007 data struct array of times with dimension channels trials 0008 also takes in 1d array of spike times as a column vector 0009 tapers precalculated tapers from dpss 0010 nfft length of padded data 0011 t time points at which tapers are calculated 0012 f frequencies of evaluation 0013 findx index corresponding to frequencies f 0014 Output 0015 J fft in form frequency index x taper index x channels trials 0016 Msp number of spikes per sample in each channel 0017 Nsp number of spikes in each channel 0018 if nargin 6 error Need all input arguments end 0019 if isstruct data C length data else C 1 end number of channels 0020 K size tapers 2 number of tapers 0021 nfreq length f number of frequencies 0022 if nfreq length findx error frequency information last two arguments inconsistent end 0023 H fft tapers nfft 1 fft of tapers 0024 H H findx restrict fft of tapers to required frequencies 0025 w 2 pi f angular frequencies at which ft is to be evaluated 0026 Nsp zeros 1 C Msp zeros 1 C 0027 for ch 1 C 0028 if

    Original URL path: http://www.chronux.org/Documentation/chronux/spectral_analysis/pointtimes/mtfftpt.html (2015-03-27)
    Open archived version from archive

  • Description of specscopepp
    0206 if acq bgsub 0207 scaled spectra acq offset acq scale acq spectra repmat acq mean spectra 1 size acq spectra 2 maxs mins 0208 else 0209 scaled spectra acq offset acq scale acq spectra mins maxs mins 0210 end 0211 0212 0213 Draw the image to the display 0214 image acq times f scaled spectra parent acq ax1 axis acq ax1 xy 0215 drawnow 0216 0217 else 0218 Keep track of skipped displays 0219 acq skips acq skips 1 0220 end 0221 0222 end 0223 0224 0225 Clean up 0226 0227 0228 acq t1 clock 0229 elapsed etime acq t1 acq t0 0230 fprintf Elapsed time f seconds n elapsed 0231 0232 Warn if many skips were encountered 0233 if acq skips 5 0234 fprintf nWARNING nThis program skipped plotting d times to keep pace n acq skips 0235 fprintf Run again without keyboard interaction or changing the figure size n 0236 fprintf If this message reappears you should reduce the plot frequency parameter n n 0237 end 0238 0239 Clean up the analoginput object 0240 if acq live 0241 stop acq ai delete acq ai clear acq ai 0242 end 0243 0244 Clean up the figure 0245 delete fig 0246 delete gcf 0247 0248 if nargout 0249 save up to ten minutes data preallocated 0250 fprintf Saving output data n 0251 outdata outdata 1 floor acq samples acquired 0252 end 0253 0254 return 0255 0256 0257 0258 0259 Functions called 0260 0261 0262 0263 0264 0265 0266 Handle Keypresses 0267 0268 0269 Handle figure window keypress events 0270 function keypress varargin 0271 0272 global acq 0273 keypressed get gcf CurrentCharacter 0274 0275 ignore raw control shift alt keys 0276 if keypressed 0277 0278 Offset changes 0279 increment 1 0280 if strcmp keypressed l 0281 acq offset acq offset increment 0282 elseif strcmp keypressed o 0283 acq offset acq offset increment 0284 0285 Scale changes 0286 elseif strcmp keypressed x 0287 acq scale acq scale increment 0288 elseif strcmp keypressed s 0289 acq scale acq scale increment 0290 0291 Reset defaults 0292 elseif strcmp keypressed d 0293 defaults 0294 acq restart 1 0295 Normalize spectra 0296 elseif strcmp keypressed n 0297 request normalize 0298 0299 Quit 0300 elseif strcmp keypressed q 0301 request quit 0302 0303 Pause 0304 elseif strcmp keypressed p 0305 request pause 0306 0307 Help 0308 elseif strcmp keypressed h 0309 audio instr 0310 0311 0312 elseif strcmp keypressed t 0313 acq threshold acq threshold 0 01 0314 0315 elseif strcmp keypressed g 0316 acq threshold acq threshold 0 01 0317 0318 0319 0320 Change colormaps for 0 9 a c 0321 elseif strcmp keypressed 0 0322 colormap jet 0323 elseif strcmp keypressed 1 0324 colormap bone 0325 elseif strcmp keypressed 2 0326 colormap colorcube 0327 elseif strcmp keypressed 3 0328 colormap cool 0329 elseif strcmp keypressed 4 0330 colormap copper 0331 elseif strcmp keypressed 5 0332 colormap gray 0333 elseif strcmp keypressed 6 0334 colormap hot 0335 elseif strcmp keypressed 7 0336 colormap hsv 0337 elseif strcmp keypressed 8 0338 colormap autumn 0339 elseif strcmp keypressed 9 0340 colormap pink 0341 elseif strcmp keypressed a 0342 colormap spring 0343 elseif strcmp keypressed b 0344 colormap summer 0345 elseif strcmp keypressed c 0346 colormap winter 0347 end 0348 0349 update display 0350 0351 end 0352 return 0353 0354 0355 Defaults 0356 0357 0358 Reset defaults 0359 function defaults 0360 global acq 0361 acq params raw tapers 3 5 0362 acq moving window 0 02 0 01 0363 acq params tapers dpsschk acq params raw tapers round acq params Fs acq moving window 1 acq params Fs 0364 acq offset 0 0365 acq scale 500 0366 acq display size 3 0367 acq params fpass 50 20000 0368 acq deriv 1 0369 acq log 0 0370 acq bgsub 1 0371 acq params pad 0 0372 acq normalize 0 0373 acq threshold 0 0374 0375 return 0376 0377 function update display 0378 global acq 0379 set acq tapers ui String sprintf 0f 0f acq params raw tapers 1 acq params raw tapers 2 0380 set acq window ui String sprintf 2f 2f acq moving window 1 acq moving window 2 0381 set acq offset ui String sprintf d acq offset 0382 set acq scale ui String sprintf d acq scale 0383 set acq display size ui String sprintf 1f acq display size 0384 set acq frequency ui String sprintf 1f 1f acq params fpass 1 acq params fpass 2 0385 set acq derivative ui Value acq deriv 0386 set acq log ui Value acq log 0387 set acq bgsub ui Value acq bgsub 0388 set acq threshold ui String sprintf 2f acq threshold 0389 return 0390 0391 0392 0393 Update ui controls 0394 0395 0396 function request quit varargin 0397 global acq 0398 acq stop 1 0399 return 0400 0401 function request pause varargin 0402 global acq 0403 acq pause not acq pause 0404 return 0405 0406 function request normalize varargin 0407 global acq 0408 acq normalize 2 0409 return 0410 0411 function update defaults varargin 0412 global acq 0413 defaults 0414 update display 0415 acq restart 1 0416 return 0417 0418 function update tapers varargin 0419 global acq 0420 acq params raw tapers sscanf get gco string f d 0421 acq params tapers dpsschk acq params raw tapers round acq params Fs acq moving window 1 acq params Fs check tapers 0422 return 0423 0424 function update window varargin 0425 global acq 0426 acq moving window sscanf get gco string f f 0427 acq params tapers dpsschk acq params raw tapers round acq params Fs acq moving window 1 acq params Fs 0428 acq restart 1 0429 return 0430 0431 function update offset varargin 0432 global acq 0433 acq offset sscanf get gco string f 0434 return 0435 0436 function update scale varargin 0437 global acq 0438 acq scale sscanf get gco string f 0439 return 0440 0441 function update display size varargin 0442 global acq 0443 acq display size sscanf get gco string f 0444 return 0445

    Original URL path: http://www.chronux.org/Documentation/chronux/spectral_analysis/specscope/specscopepp.html (2015-03-27)
    Open archived version from archive

  • Description of close
    corrupted file GOOD code vw videoWriter vw close vw clear vw okay but not needed After calling CLOSE VW should not be used any more vw videoWriter vw close vr next vw BAD vw videoWriter close vw BAD should reassign result to vw to be safe next vw BAD SEE ALSO videoWriter Copyright c 2007 Gerald Dalley See MIT txt in the installation directory for licensing details especially when using this library on GNU Linux CROSS REFERENCE INFORMATION This function calls This function is called by SOURCE CODE 0001 function vw close vw 0002 VW CLOSE VW 0003 Closes video VW and releases any system resources necessary to access it 0004 e g threads file handles etc Do NOT just clear a videoWriter 0005 object without first closing its handle 0006 0007 BAD code typically will leak system resources 0008 vw videoWriter 0009 0010 clear vw leaks resources probably results in a corrupted file 0011 0012 GOOD code 0013 vw videoWriter 0014 0015 vw close vw 0016 clear vw okay but not needed 0017 0018 After calling CLOSE VW should not be used any more 0019 vw videoWriter 0020 vw close vr 0021 next vw BAD 0022 vw videoWriter 0023

    Original URL path: http://www.chronux.org/Documentation/chronux/fly_track/videoIO/videoIO_2007a/@videoWriter/close.html (2015-03-27)
    Open archived version from archive

  • Description of fig6_5
    CROSS REFERENCE INFORMATION This function calls This function is called by runbook SOURCE CODE 0001 Local Regression and Likelihood Figure 6 5 0002 Author Catherine Loader 0003 0004 Local smooth of CO2 dataset 0005 Use bivariate fit to capture the two trends 0006 0007 bonus plot fitted values vs year 0008 0009 load co2 0010 fit locfit month year month 12 co2 alpha 0 2 style an scale 6 pi

    Original URL path: http://www.chronux.org/Documentation/chronux/locfit/Book/fig6_5.html (2015-03-27)
    Open archived version from archive



  •