function out=handMetaDistBootstrap(in)

numReps=1000;
numFlies=size(in,1);

numBins=100;
bins=linspace(0,10,numBins);

vals=zeros(numReps,numBins);

h=waitbar(0,'progress');

for i=1:numReps
    whichTemp=ceil(rand(numFlies,1)*numFlies);
    dataTemp=in(whichTemp);
    vals(i,:)=ksdensity(dataTemp,bins);
    waitbar(i/numReps,h);
end
close(h);

out=vals;