rbf algorithm