Predicting Mortality of ICU Patients: The PhysioNet/Computing in Cardiology Challenge 2012 1.0.0

File: <base>/sources/mmacas_at_seznam.cz/entry7/f_median_diff_mean.m (263 bytes)
function y = f_median_diff_mean(name,record)

%Get the value of parameter name at times time
[~,values]=getTimeSeries(name, record);
%Compute the feature value

if isempty(values)
    y=NaN;
else
    y = abs(diff([median(values) mean(values)]));
end