Skip to content
This repository was archived by the owner on Oct 11, 2023. It is now read-only.

Commit 2fa618b

Browse files
committed
Actually use length in linspace()
1 parent e1d56ca commit 2fa618b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

anscombe/src/main/scala/Anscombe.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ object Anscombe extends js.JSApp {
3232

3333
def linspace(a: Double, b: Double, length: Int = 100): Seq[Double] = {
3434
val increment = (b - a) / (length - 1)
35-
(0 until 100).map(i => a + increment*i)
35+
(0 until length).map(i => a + increment*i)
3636
}
3737

3838
object lines_source extends ColumnDataSource {

0 commit comments

Comments
 (0)