Skip to content

Commit

Permalink
Including data files from publication
Browse files Browse the repository at this point in the history
  • Loading branch information
iahncajigas committed Apr 10, 2017
1 parent 18a421c commit 5142492
Show file tree
Hide file tree
Showing 28 changed files with 1,642 additions and 755 deletions.
364 changes: 336 additions & 28 deletions Analysis.m

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion CIF.m
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ function setHistory(cifObj,histObj)
spikeTrainColl.setMinTime(lambda.minTime);
spikeTrainColl.setMaxTime(lambda.maxTime);
end

function [spikeTrainColl, lambda]=simulateCIFByThinning(mu,hist,stim,ens,inputStimSignal,inputEnsSignal,numRealizations,simType)
% spikeTrainColl=simulateCIF(mu,hist,stim,inputStimSignal,inputEnsSignal,numRealizations)
% Returns a nstColl with numRealization different nspikeTrain
Expand Down
6 changes: 6 additions & 0 deletions ConfigColl.m
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,12 @@ function setConfigNames(tcColl, names, index)
end
end
end
function subsetConfigs=getSubsetConfigs(tcColl, subset)
for i=1:length(subset)
tempconfigs{i} = tcColl.getConfig(subset(i));
end
subsetConfigs=ConfigColl(tempconfigs);
end
function structure = toStructure(tcColl)
fNames = fieldnames(tcColl);
for i=1:length(fNames)
Expand Down
11 changes: 9 additions & 2 deletions CovColl.m
Original file line number Diff line number Diff line change
Expand Up @@ -492,9 +492,10 @@ function enforceSampleRate(ccObj)
% enforceSampleRate(ccObj)
% makes sure that all covariates have the same sampleRate as
% that in ccObj.sampleRate;
currRate = ccObj.sampleRate;
for i=1:ccObj.numCov;
currCov = ccObj.covArray{i}; %change the actual sample rate of the objects
if(and(and(round(currCov.sampleRate*1000)/1000~=round(ccObj.sampleRate*1000)/1000,~isnan(currCov.sampleRate)),~isnan(ccObj.sampleRate)))
if(and(and(round(currCov.sampleRate*currRate)/currRate~=round(ccObj.sampleRate*currRate)/currRate,~isnan(currCov.sampleRate)),~isnan(ccObj.sampleRate)))
currCov.resampleMe(ccObj.sampleRate);
end
end
Expand Down Expand Up @@ -590,7 +591,13 @@ function resetCovShift(ccObj)
dimTot = sumDimensions(selectorCell);
nCov = numActCov(selectorCell);
covInd = covIndFromSelector(selectorCell);

maxTime=ccObj.getCov(1).maxTime;

minTime=ccObj.getCov(1).minTime;

binwidth=1/ccObj.getCov(1).sampleRate;

% dataMat=zeros(floor(abs(maxTime-minTime)/binwidth)+1,dimTot);
dataMat=zeros(length(ccObj.getCov(1).getSigRep.time),dimTot);
% size(dataMat)
for i=1:nCov
Expand Down
Loading

0 comments on commit 5142492

Please sign in to comment.