Generalize frequency array length