R/model_evaluation.R
maxent_correlation.Rd
Computes the Pearson correlation coefficient between two numeric vectors.
maxent_correlation(x, y)
Numeric vector.
Numeric vector (same length as x).
Correlation coefficient in [-1, 1].
maxent_correlation(c(1, 2, 3), c(2, 4, 6)) # 1.0 #> [1] 1