Research Article

Personalized Recommendation in Interactive Visual Analysis of Stacked Graphs

Algorithm 1

Compute preferences for views.
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