Skip to main content
. 2018 Jun 15;18(6):1947. doi: 10.3390/s18061947
Algorithm 2 A selective filter uses an existing out-of-sequence filter to incorporate observations that are newer than a fixed threshold.

field Td

field oosFilter

field lastEstTime

function init(Td):

  field.Td = Td

end

function update(time,observation):

  if time-lastEstTime<Td:

    oosFilter.update(time, observation)

    lastEstTime = time

  end

end