implement RBF weights