I have an arrays of 5 values containing example:
0.01
0.1
1
10
100
0.1
1
10
100
1000
1
10
100
1000
10000
5
50
500
5000
50000
I need to convert to arrays holding 100 values spaced in same proportion and containing as well the original 5 values in the sequence. Like:
[0.01,...,0.1,...1,...10,...100]
I thought I could use numeric.linspace(0.01,100,100);
http://www.numericjs.com/documentation.html
But this only passes first and last wanted value. Ideally some function that accepts an array of n values as first parameter and the final wanted array.length
I was not sure how to formulate the question so please suggest a different title if more appropriated...
5or0.1what should be the output?