powered by
1) the nOut smallest and highest data points (in x) lies below and above the lower and upper boundary knots respectively.
2) there is at least nIn data points between all knots.
getKnots(x,nKnots=10,nOut=2000,nIn=4000)