Changeset 12332
- Timestamp:
- 07/05/09 16:57:58 (8 months ago)
- Location:
- trunk/documents/theses/dstn
- Files:
-
- 3 added
- 1 removed
- 4 modified
-
figs-kdtree/kdtree-mindist.tex (added)
-
figs-kdtree/mindist-bbox.pdf (added)
-
figs-kdtree/mindist-split.pdf (added)
-
kdtree.tex (modified) (2 diffs)
-
Makefile (modified) (2 diffs)
-
mindist-split.pdf (deleted)
-
preamble.tex (modified) (1 diff)
-
thesis/plotstyle.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/documents/theses/dstn/kdtree.tex
r12331 r12332 299 299 \> p\_right = [p in points 300 300 where p[dim] > \spc split\_val] \\ 301 \> return (p oints\_left, points\_right, split\_val)301 \> return (p\_left, p\_right, split\_val) 302 302 \end{pcode} 303 303 \caption{Pseudocode for \kdtree construction.} … … 326 326 \begin{figure} 327 327 \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 331 331 \end{tabular} 332 332 \end{center} 333 333 \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.} 334 The query point is shown as a gray dot, and the \mindist s to the two 335 boundig-boxes are shown by the arrows. 336 \captionpart{Right:} \mindist for a \kdtree node with only the splitting 337 dimension and value. The \mindist is zero for the child on the same 338 side of the splitting plane as the query point; for the other child 339 the \mindist is simply the distance in the splitting dimension from 340 the query to the splitting plane.} 339 341 \label{fig:mindist} 340 342 \end{figure} -
trunk/documents/theses/dstn/Makefile
r12331 r12332 34 34 35 35 kdfigs.tex: $(addsuffix .tex,$(addprefix figs-kdtree/, \ 36 kdtree-eg kd figs-tikz))36 kdtree-eg kdtree-mindist kdfigs-tikz)) 37 37 cat $^ > $@ 38 38 … … 43 43 pdflatex $< 44 44 45 KDFIGS := kdtree-bbox kdtree-split 45 KDFIGS := kdtree-bbox kdtree-split mindist-bbox mindist-split 46 46 47 47 KD_FIGS := $(addsuffix .pdf,$(addprefix figs-kdtree/,$(KDFIGS))) -
trunk/documents/theses/dstn/preamble.tex
r12313 r12332 149 149 \newenvironment{pcode} 150 150 {\begin{center}% \fbox{% 151 \linespacing{1.25} 151 152 \begin{minipage}[c]{\textwidth}% 152 153 \begin{codesize}% -
trunk/documents/theses/dstn/thesis/plotstyle.py
r12328 r12332 72 72 bottom = 0.12 73 73 if (fig in ['aegis-acs-quad', 'sdss-quad', 'galex-quad'] or 74 fig.startswith('kdtree-') ):74 fig.startswith('kdtree-') or fig.startswith('mindist-')): 75 75 # full-screen 76 76 left = 0.005 … … 78 78 top = 0.005 79 79 bottom = 0.005 80 if fig.startswith('mindist-'): 81 # a bit narrower... 82 figw = 0.9 80 83 if fig == 'sdss-quad': 81 84 figh = 8.98 / 13.10 … … 83 86 if fig in ['kdtree-bbox', 'kdtree-split']: 84 87 figh = 4.4 85 86 88 87 89 figure(figsize=(scale*figw,scale*figh), dpi=300) … … 140 142 'kdtree-bbox': 'kdtreebboxfig', 141 143 'kdtree-split': 'kdtreesplitfig', 144 'mindist-bbox': 'mindistbboxfig', 145 'mindist-split': 'mindistsplitfig', 142 146 } 143 147 if fig in namemap:
