Trial-Based Functional Analysis