Xavier Holt edited subsubsection_Input_begin_description_item__.tex  over 8 years ago

Commit id: ab50135acaee69eababa98da8ab3b09fc22861e4

deletions | additions      

       

\subsubsection*{Input}  \begin{description}  \item[f] a function proportional to the target density  \item[$\mathbf{x_0}$] the current point \item[]  \item[y]the sampled vertical level defining the slice  \item[w]estimated typical slice size  \item[p]limit on size of slice  \end{description}  \subsubsection*{Finding an Interval}  \begin{lstlisting}[mathescape] % Start your code-block  # Input  # - f: a function proportional to the target density  # - ${x_0}$: the current point  # - y: the sampled vertical level defining the slice  # - w: estimated typical slice size  # - p: parameter limiting size of slice to $2^pw$  U ~ Uniform(0,1) #U is sampled from a random U(0,1) distribution.  L $\leftarrow$ $x_0$ - w * U  R $\leftarrow$ L + w