Suppose the following graph represents average wave heights during a day at the beach. Determine the equation of the cosine function that models this graph.