Changeset 12332


Ignore:
Timestamp:
07/05/2009 04:57:58 PM (14 months ago)
Author:
dstn
Message:

new mindist figs

Location:
trunk/documents/theses/dstn
Files:
3 added
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/documents/theses/dstn/Makefile

    r12331 r12332  
    3434 
    3535kdfigs.tex: $(addsuffix .tex,$(addprefix figs-kdtree/, \ 
    36                 kdtree-eg kdfigs-tikz)) 
     36                kdtree-eg kdtree-mindist kdfigs-tikz)) 
    3737        cat $^ > $@ 
    3838 
     
    4343        pdflatex $< 
    4444 
    45 KDFIGS := kdtree-bbox kdtree-split 
     45KDFIGS := kdtree-bbox kdtree-split mindist-bbox mindist-split 
    4646 
    4747KD_FIGS := $(addsuffix .pdf,$(addprefix figs-kdtree/,$(KDFIGS))) 
  • trunk/documents/theses/dstn/kdtree.tex

    r12331 r12332  
    299299  \> p\_right = [p in points 
    300300              where p[dim] > \spc split\_val] \\ 
    301   \> return (points\_left, points\_right, split\_val) 
     301  \> return (p\_left, p\_right, split\_val) 
    302302\end{pcode} 
    303303\caption{Pseudocode for \kdtree construction.} 
     
    326326\begin{figure} 
    327327\begin{center}% 
    328 \begin{tabular}{@{}c@{}c@{}} 
    329 \includegraphics[width=0.49\columnwidth]{mindist-bb}& 
    330 \includegraphics[width=0.49\columnwidth]{mindist-split}% 
     328\begin{tabular}{@{}c@{\hspace{3em}}c@{}} 
     329\mindistbboxfig & 
     330\mindistsplitfig 
    331331\end{tabular} 
    332332\end{center} 
    333333\caption{\captionpart{Left:} \mindist for a \kdtree node with bounding boxes. 
    334 \captionpart{Right:} \mindist for a \kdtree node with only the splitting dimension and value, 
    335 the \mindist is zero for the child on the same side of the splitting 
    336 plane as the query point; for the other child the \mindist is simply 
    337 the distance in the splitting dimension from the query to the 
    338 splitting plane.} 
     334The query point is shown as a gray dot, and the \mindist s to the two 
     335boundig-boxes are shown by the arrows. 
     336\captionpart{Right:} \mindist for a \kdtree node with only the splitting 
     337dimension and value.  The \mindist is zero for the child on the same 
     338side of the splitting plane as the query point; for the other child 
     339the \mindist is simply the distance in the splitting dimension from 
     340the query to the splitting plane.} 
    339341\label{fig:mindist} 
    340342\end{figure} 
  • trunk/documents/theses/dstn/preamble.tex

    r12313 r12332  
    149149\newenvironment{pcode} 
    150150               {\begin{center}% \fbox{% 
     151                             \linespacing{1.25} 
    151152               \begin{minipage}[c]{\textwidth}% 
    152153               \begin{codesize}% 
  • trunk/documents/theses/dstn/thesis/plotstyle.py

    r12328 r12332  
    7272                bottom = 0.12 
    7373        if (fig in ['aegis-acs-quad', 'sdss-quad', 'galex-quad'] or 
    74                 fig.startswith('kdtree-')): 
     74                fig.startswith('kdtree-') or fig.startswith('mindist-')): 
    7575                # full-screen 
    7676                left = 0.005 
     
    7878                top = 0.005 
    7979                bottom = 0.005 
     80        if fig.startswith('mindist-'): 
     81                # a bit narrower... 
     82                figw = 0.9 
    8083        if fig == 'sdss-quad': 
    8184                figh = 8.98 / 13.10 
     
    8386        if fig in ['kdtree-bbox', 'kdtree-split']: 
    8487                figh = 4.4 
    85  
    8688 
    8789        figure(figsize=(scale*figw,scale*figh), dpi=300) 
     
    140142                                'kdtree-bbox': 'kdtreebboxfig', 
    141143                                'kdtree-split': 'kdtreesplitfig', 
     144                                'mindist-bbox': 'mindistbboxfig', 
     145                                'mindist-split': 'mindistsplitfig', 
    142146                                } 
    143147        if fig in namemap: 
Note: See TracChangeset for help on using the changeset viewer.