Autocorrelation-invariant functions and an associated orthogonal set of functions