Skip to main content
letter
. 2015 Mar 19;15(3):6607–6632. doi: 10.3390/s150306607

Algorithm 1: Sensor Selection

Input: Sn×m matrix of time series for n sensors with m samples each, a vector r = {r1,…, rm} of a reference
time series, a correlation coefficient limit ρ ∈ [—1,1], and a set of validity rules Inline graphic = {υ1,…, υl}.
Output: A set Inline graphic of reliable sensors.
n ← rows(S);
m ← cols(S);
Inline graphic ← ∅;
// For each sensor entry in the time series matrix S.
for i ← 1 to n do
 // Adjust the valid readings among the reference and the sensor.
s* ← { si,j (si,j ≠ λ) and (rj ≠ λ), 1 ≤ jm };
r* ← { rj (si,j ≠ λ) and (rj ≠ λ),1 ≤ jm };
 // Compute the correlation coefficient between s* and r*.
ρ* ← cor(s*, r*);
 // The correlation satisfies the given limit?
if ρ* ≥ ρ;
then
  // The sensor entry satisfies all validity rules?
  if k=1lυk(s);
  then
    Inline graphicInline graphici;
  end
end
end
return Inline graphic