PERIODIC AND ALMOST PERIODIC COSINE OPERATOR FUNCTIONS