Let's say I have two arrays: SMALL_ARRAY and LARGE_ARRAY The LARGE_ARRAY contains values that are similar in value (not necessarily the same) I would like to get a subarray of the LARGE_ARRAY that:
= Has same size as SMALL_ARRAY
= Has similar values (similar distribution) as SMALL_ARRAY
let's assume small = [1,2,3,4] and large = [100,1.8,32,4.1,5,55,34,2.9,1.1,99]
I would like my new array to be [1.1,1.8,2.9,4.1]
so it has same size and similar elements to small
Any assistance please? Many thanks