View source: R/correlationCalculationFunctions.R
This function takes in two vectors that define the correlation profile of any collective system and measures the slope at the zero-intercept (correlation length) by using the 5-point stencil method on the five data points closest to the x-intercept of the correlation profile. Based off of advice from http://www.theanalysisfactor.com/r-tutorial-4/
1 | correlationSlope(distances, correlations)
|
distances |
A vector representing distance measures |
correlations |
A vector of the corresponding average pair-wise correlation at that distance. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.