procedure VIEWPREF( 𝑃 )
𝑎 average of all view dwell times in 𝑃
𝑠 standard deviation of all view dwell times in 𝑃
 for 𝑣 = 1 to | 𝑃 |   do
   𝑧 ( 𝑡 𝑣 𝑡 ) 𝑣 𝑎 𝑠   // zscore of dwell time 𝑡 of
  view 𝑣
  if 𝑧 ( 𝑡 𝑣 ) > 𝜖   then   // trimming zscore
    𝑧 ( 𝑡 𝑣 ) 𝜖
  else if 𝑧 ( 𝑡 𝑣 ) < 𝜖   then   // trimming zscore
    𝑧 ( 𝑡 𝑣 ) 𝜖
  end if
   P R F 𝑣 𝑧 ( 𝑡 𝑣 ) / 𝜖   // preference for view 𝑣
 end for
return { P R F 𝑣 }   // a set of view preferences
end procedure
Algorithm 1: Compute preferences for views.