08.10.2016 Views

Foundations of Data Science

2dLYwbK

2dLYwbK

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

one needs to find the c i such that<br />

⎛ ⎞ ⎛<br />

3 1 1 1 0 1 0 0 0<br />

1<br />

1 1 1 0 −1 0 0 0<br />

4<br />

1 1 −1 0 0 1 0 0<br />

8<br />

3<br />

=<br />

1 1 −1 0 0 −1 0 0<br />

1 −1 0 1 0 0 1 0<br />

⎜ 5<br />

⎟ ⎜ 1 −1 0 1 0 0 −1 0<br />

⎝ 7 ⎠ ⎝ 1 −1 0 −1 0 0 0 1<br />

9 1 −1 0 −1 0 0 0 −1<br />

⎞ ⎛<br />

⎟ ⎜<br />

⎠ ⎝<br />

⎞<br />

c 1<br />

c 2<br />

c 3<br />

c 4<br />

c 5<br />

c 6<br />

⎟<br />

c 7<br />

⎠<br />

c 8<br />

The first column represents the scale function φ(x) and subsequent columns the ψ’s.<br />

The tree in Figure 11.2 illustrates an efficient way to find the coefficients representing<br />

the vector ( 3 1 4 8 3 5 7 9 ) in the basis. Each vertex in the tree contains the<br />

average <strong>of</strong> the quantities <strong>of</strong> its two children. The root gives the average <strong>of</strong> the elements in<br />

the vector, which is 5 in this example. This average is the coefficient <strong>of</strong> the basis vector<br />

in the first column <strong>of</strong> the above matrix. The second basis vector converts the average<br />

<strong>of</strong> the eight elements into the average <strong>of</strong> the first four elements, which is 4, and the last<br />

four elements, which is 6, with a coefficient <strong>of</strong> -1. Working up the tree determines the<br />

coefficients for each basis vector.<br />

.<br />

3 1 4 8 3 5 7 9<br />

2 6 4 8<br />

4 6<br />

5<br />

⎛<br />

⎜<br />

⎝<br />

3<br />

1<br />

4<br />

8<br />

3<br />

5<br />

7<br />

9<br />

⎞<br />

⎛<br />

= 5<br />

⎟ ⎜<br />

⎠ ⎝<br />

1<br />

1<br />

1<br />

1<br />

1<br />

1<br />

1<br />

1<br />

⎞<br />

⎛<br />

−1<br />

⎟ ⎜<br />

⎠ ⎝<br />

Figure 11.2: Tree <strong>of</strong> function averages<br />

1<br />

1<br />

1<br />

1<br />

−1<br />

−1<br />

−1<br />

−1<br />

⎞<br />

⎛<br />

−2<br />

⎟ ⎜<br />

⎠ ⎝<br />

1<br />

1<br />

−1<br />

−1<br />

0<br />

0<br />

0<br />

0<br />

⎞<br />

⎛<br />

−2<br />

⎟ ⎜<br />

⎠ ⎝<br />

0<br />

0<br />

0<br />

0<br />

1<br />

1<br />

−1<br />

−1<br />

⎞<br />

⎛<br />

+1<br />

⎟ ⎜<br />

⎠ ⎝<br />

1<br />

−1<br />

0<br />

0<br />

0<br />

0<br />

0<br />

0<br />

⎞<br />

⎛<br />

−2<br />

⎟ ⎜<br />

⎠ ⎝<br />

0<br />

0<br />

1<br />

−1<br />

0<br />

0<br />

0<br />

0<br />

⎞<br />

⎛<br />

−1<br />

⎟ ⎜<br />

⎠ ⎝<br />

0<br />

0<br />

0<br />

0<br />

1<br />

−1<br />

0<br />

0<br />

⎞<br />

⎛<br />

−1<br />

⎟ ⎜<br />

⎠ ⎝<br />

0<br />

0<br />

0<br />

0<br />

0<br />

0<br />

1<br />

−1<br />

⎞<br />

⎟<br />

⎠<br />

358

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!