Executes a function at a given a rate for an array of parameters