Rev 2310 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2310 | Rev 2334 | ||
---|---|---|---|
Line 1858... | Line 1858... | ||
1858 | cons << s[t] << eol; |
1858 | cons << s[t] << eol; |
1859 | }
|
1859 | }
|
1860 | 1860 | ||
1861 | void fill (float* buf, float start, float end, int n) { |
1861 | void fill (float* buf, float start, float end, int n) { |
1862 | float es = end - start; |
1862 | float es = end - start; |
1863 | float a = 0, da = 1./ (n - 1); |
1863 | float da = 1./ n, a = da; |
1864 | for (int i = 0; i < n; ++i) { |
1864 | for (int i = 0; i < n; ++i) { |
1865 | buf[i] = start + a * es; |
1865 | buf[i] = start + a * es; |
1866 | a += da; |
1866 | a += da; |
1867 | }
|
1867 | }
|
1868 | }
|
1868 | }
|