Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
間隔をn個の等しくないサブ間隔に分割する必要があります。その間隔の長さは昇順です。
間隔があるとしましょう(10,90)
n個のサブインターバルが必要です。n=4としましょう
(10,20)、(20,35)、(35,55)、(55,90)のような必要なサブ間隔
サブインターバルの長さは昇順である必要があります
どうすればいいですか?
任意の単調増加および凸関数を使用して間隔を構築できます。たとえば、二次関数は次のような式を与えます。
DividingValue[i=1..n-1] = A + Round(i^2 * (BA)/(n^2))
どこで (A, B) は間隔です。
たとえば、長さ1、2、3、...の間隔を選択できます。したがって、[10、90]を分割する例では、[[10], [11,12], [13,14,15], [16..90]].
[[10], [11,12], [13,14,15], [16..90]]