我有一个范围X
。
我想以N
为间隔划分这个范围。
我也希望间隔重叠。
哪种算法可以让我找到我的间隔大小?
示例:
Range = 1; % the data ranges between 0 and 1
N = 5; % the range is divided in 5 intervals.
Overlap = .5; % Two neighbouring intervals overlap by 50%
StepSize = ?;
非常感谢
答案 0 :(得分:0)
公式是
s = x / (n + o - n * o)