Weak equivalence of functions over a finite field