Commit f0c9988d authored by Erik Frisk's avatar Erik Frisk

Slight cleanup of code and added SingleFaultIsolation.m to src directory

parent 9f4db90c
This repository contains data and code to generate results from the paper This repository contains data and code to generate results from the paper
_Residual Selection for Consistency Based Diagnosis Using Machine Learning Models_ _Residual Selection for Consistency Based Diagnosis Using Machine Learning Models_
by Erik Frisk and Mattias Krysander, Department of Electrical Engineering, Linköping Univeristy, Sweden by Erik Frisk and Mattias Krysander, Department of Electrical Engineering, Linköping University, Sweden
\ No newline at end of file
This diff is collapsed.
function isol=SingleFaultIsolation( res, FSM )
N = size(res,1);
nf = size(FSM,2);
isol = zeros(N,nf + 1);
for k=1:N
alarms = abs(res(k,:))>=1;
if any(alarms)
isol(k,:) = [false all(FSM(alarms,:),1)];
else
isol(k,:) = [true boolean(zeros(1,nf))];
end
end
end
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment