Weighting Vectors for Machine Learning: Numerical Harmonic Analysis Applied to Boundary Detection