I want to give paramters valueFrom
, valueTo
and length.out
. The same how seq
function works in R:
seq(0, 1, length.out = 5)
0.00 0.25 0.50 0.75 1.00
How to do it in python?
Is the only solution is:
range(valueFrom, valueTo, by=(valueTo - ValueFrom)/(lengthOut - valueTo - ValueFrom)) ?
Python is really messy language in compare with R or Java.