The amplitude of a cosine function is the absolute value of the coefficient of the cosine term. In the given function, ArrayX(t) = 4 + 2cos(pi(t - 3)), the coefficient of the cosine term is 2. Therefore, the amplitude of the function is |2|, which is equal to 2.