This function computes the standardize number of points within each hexagon.
Examples
r2 <- diff(range(s_curve_noise_umap$UMAP2))/diff(range(s_curve_noise_umap$UMAP1))
all_centroids_df <- gen_centroids(bin1 = 4, r2 = r2, q = 0.1)
umap_with_hb_id <- assign_data(data = s_curve_noise_umap_scaled,
centroid_df = all_centroids_df)
compute_std_counts(data_hb = umap_with_hb_id)
#> # A tibble: 11 × 3
#> hb_id n std_counts
#> <int> <int> <dbl>
#> 1 5 14 1
#> 2 6 3 0.214
#> 3 9 3 0.214
#> 4 10 6 0.429
#> 5 14 9 0.643
#> 6 15 2 0.143
#> 7 19 11 0.786
#> 8 23 4 0.286
#> 9 27 9 0.643
#> 10 28 9 0.643
#> 11 31 5 0.357