Let $G$ be a class of $\it{indicator}$ functions where $g\in G$ implies that $g : X \rightarrow \{0,1\}$, where the domain $X$ is a compact subset of $\mathbf{R}^n$. For example:
$$ g(x) = 0 \text{ if } w_1x_1+\cdots+w_dx_d < \eta $$ $$ g(x) = 1 \text{ otherwise } $$
Note: I am not interested in this particular class. This is just an example.
Is there a theorem that would say something like below?
Theorem: Let $G$ be an arbitrary class of $\it{indicator}$ functions with properties IMPORTANT TEXT MISSING. Then for any $f : X \rightarrow \mathbf{R}$ which is NICELY BEHAVING IN SOME SENSE and any $\epsilon$ a linear combination $h=w_1g_1+\cdots+w_kg_k$ (of elements in $G$) can be found such that $\vert h(x)-f(x)\vert<\epsilon$ for all $x\in X$.
Any hint highly appreciated!
EDIT: A possible answer might be found here but I am not sure. It all depends whether my understanding of the discussed theorem is correct.