Cardiac Output Estimation from Arterial Blood Pressure Waveforms 1.0.0

File: <base>/code/tools/get95.m (240 bytes)
function y = get95(x)
% returns 95% confidence interval

y=std(x);

m=mean(x);

xs = sort(x);

n=length(x);
ind1=round(0.025*n);
ind2=round(0.975*n);

y= mean(abs(xs([ind1 ind2])));

%% alternative: just use std
%y=std(x);