Encode with Correlation-Ordered Grid
References
Sharma A et al. (2019). DeepInsight: A methodology to transform a non-image data to an image for convolution neural network architecture. Scientific Reports, 9, 11399.
Examples
encode_corr_grid(1:6, order = c(6, 5, 4, 3, 2, 1), rows = 2, cols = 3)
#> [,1] [,2] [,3]
#> [1,] 6 5 4
#> [2,] 3 2 1