Title: Almost Periodic Type Functions and Ergodicity