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.

The Haar Wavelet<br />

⎧<br />

⎨ 1 0 ≤ x < 1<br />

φ(x) =<br />

⎩<br />

0 otherwise<br />

1<br />

φ(x)<br />

1<br />

x<br />

⎧<br />

1<br />

ψ(x)<br />

⎪⎨<br />

ψ(x) =<br />

1 0 ≤ x < 1 2<br />

−1 1 2 ≤ x < 1<br />

1<br />

x<br />

⎪⎩<br />

0 otherwise<br />

-1<br />

The basis set becomes<br />

φ 00 ψ 10<br />

ψ 20 ψ 22<br />

ψ 30 ψ 32 ψ 34 ψ 36<br />

ψ 40 ψ 42 ψ 44 ψ 46 ψ 48 ψ 4,10 ψ 4,12 ψ 4,14<br />

To find a basis for a function that has only finite support, select a scale vector φ(x)<br />

whose scale is that <strong>of</strong> the support <strong>of</strong> the function to be represented. Next approximate<br />

the function by the set <strong>of</strong> scale functions φ(2 j x − k), k = 0, 1, . . . , for some fixed value <strong>of</strong><br />

j. The value <strong>of</strong> j is determined by the desired accuracy <strong>of</strong> the approximation. Basically<br />

the x axis has been divided into intervals <strong>of</strong> size 2 −j and in each interval the function is<br />

approximated by a fixed value. It is this approximation <strong>of</strong> the function that is expressed<br />

as a linear combination <strong>of</strong> the basis functions.<br />

Once the value <strong>of</strong> j has been selected, the function is sampled at 2 j points, one in<br />

each interval <strong>of</strong> width 2 −j . Let the sample values be s 0 , s 1 , . . . . The approximation to the<br />

function is ∑ 2 j −1<br />

k=0 s kφ(2 j x − k) and is represented by the vector (s 0 , s 1 . . . , s 2 j −1). The<br />

problem now is to represent the approximation to the function using the basis vectors<br />

rather than the non orthogonal set <strong>of</strong> scale functions φ jk (x). This is illustrated in the<br />

following example.<br />

To represent the function corresponding to a vector such as ( 3 1 4 8 3 5 7 9 ),<br />

357

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

Saved successfully!

Ooh no, something went wrong!