Synthesis of linear-aperture distributions by pattern sampling