阅读背景:

如何在已知的最小值和最大值的范围内缩小数字范围

来源:互联网 

So I am trying to figure out how to take a range of numbers and scale the values down to fit a range. The reason for wanting to do this is that I am trying to draw ellipses in a java swing jpanel. I want the height and width of each ellipse to be in a range of say 1-30. I have methods that find the minimum and maximum values from my data set, but I won't have the min and max until runtime. Is there an easy way to do this?So I am trying to figure out how to take a rang




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: