View source: R/correlationCalculationFunctions.R
Uses the method developed in Attanasi et al. 2014 to calculate the finite-size susceptibility or maximal cumulative correlation of a collectively moving system. The cumulative correlation is calculated using the trapezoidal (Simpson's) rule for numerical integration. This function filters the correlation profile to only consider values before the first zero-crossing if it detects any negative correlation values.
1 | calculateSusceptibility(distance = 1:length(correlation), correlation)
|
distance |
The domain over which to integrate. If not provided, daata points are assumed to be evenly spaced with distance 1. |
correlation |
The correlation at the corresponding distance. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.