FRAM: The Functional Resonance Analysis Method