<divclass="platform-hinted "data-platform-hinted="data-platform-hinted"><divclass="content sourceset-dependent-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><spanclass="parameters "><spanclass="parameter ">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></span><spanclass="parameter ">numberOfPoints<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a></span></span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="../../kmath-core/space.kscience.kmath.structures/-double-buffer/index.html">DoubleBuffer</a><spanclass="clearfix"><spanclass="floating-right">(<ahref="https://github.com/SciProgCentre/kmath/tree/master/kmath-for-real/src/commonMain/kotlin/space/kscience/kmath/real/grids.kt#L19">source</a>)</span></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>