I have a set of functions $f_i,\, i=1,2,\ldots,n$ defined on an interval $[a,b]$, and a function $F$ also defined on $[a,b]$. I would like to project F on a subset of functions $f_i$ so that the number of $f_i$ used to represent $F$ is minimum, but $\|F-\sum\limits^k_{i=1}f_iw_i\|\rightarrow0$, where $w_i$ are some weights. Any help on this problem or a reference leading to its solution is very welcome.
Thank you.
Karla