eccentricity_filter function

Compute eccentricity of data points

Compute eccentricity of data points

eccentricity_filter(dists)

Arguments

  • dists: A distance matrix associated to a data frame.

Returns

A vector of centrality measures, calculated per data point as the sum of its distances to every other data point, divided by the number of points.

Examples

num_points = 100 P.data = data.frame( x = sapply(1:num_points, function(x) sin(x) * 10) + rnorm(num_points, 0, 0.1), y = sapply(1:num_points, function(x) cos(x) ^ 2 * sin(x) * 10) + rnorm(num_points, 0, 0.1) ) P.dist = dist(P.data) eccentricity = eccentricity_filter(P.dist)
  • Maintainer: George Clare Kennedy
  • License: MIT + file LICENSE
  • Last published: 2025-02-20