<divclass="platform-hinted "data-platform-hinted="data-platform-hinted"><divclass="content sourceset-depenent-content"data-active=""data-togglable=":kmath-for-real:dokkaHtmlPartial/commonMain"><divclass="symbol monospace"><spanclass="token keyword"></span><spanclass="token keyword">fun </span><ahref="../../kmath-core/space.kscience.kmath.structures/-buffer/-companion/index.html">Buffer.Companion</a><spanclass="token punctuation">.</span><ahref="from-range.html"><spanclass="token function">fromRange</span></a><spanclass="token punctuation">(</span>range<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.ranges/-closed-floating-point-range/index.html">ClosedFloatingPointRange</a><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html">Double</a><spanclass="token operator">></span><spanclass="token punctuation">, </span>numberOfPoints<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="../../kmath-core/space.kscience.kmath.structures/-double-buffer/index.html">DoubleBuffer</a><spanclass="top-right-position"><spanclass="copy-icon"></span><divclass="copy-popup-wrapper popup-to-left"><spanclass="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><pclass="paragraph">Create a Buffer-based grid with equally distributed <ahref="from-range.html">numberOfPoints</a> points. The range could be increasing or decreasing. If range has a zero size, then the buffer consisting of <ahref="from-range.html">numberOfPoints</a> equal values is returned.</p></div></div>