Quantifying Patterns in Dynamical Systems and Biological Data