generateSpiketrain

PURPOSE ^

generates a set of spiketrains,at different noise levels but with the same

SYNOPSIS ^

function [spiketrainsAll, realWaveformsInd, noiseWaveformsInd,spiketimes,waveformsOrig, scalingFactorSpikes] = generateSpiketrain(allMeans, realWaveformsInd, nrSamples, noiseStds)

DESCRIPTION ^

generates a set of spiketrains,at different noise levels but with the same
neuronal firing.

input
allMeans: collection of mean waveforms
realWaveformsInd: real waveforms to use
nrsamples:# samples to generate,sampled at 100000Hz
noiseStds: vector of noise stds to generate

returns
spiketrainsAll: cell array of spike trains for each noise level
realWaveformsInd:same as input
noiseWaveformsInd:which of the mean waveforms were chosen to be used for
noise
spiketimes: cell array of points of time when neurons fire (for each
neuron one element in cell array).

waveformsOrig: cell array of cell arrays, orig waveforms of each noise
level for each neuron.

scalingFactorSpikes: scaling factor used for each of the real (=neuron)
mean waveforms.


urut/dec04

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Wed 03-Oct-2007 12:29:38 by m2html © 2003