Skip to content

Commit ad639dd

Browse files
author
DB Tsai
committed
Indentation
1 parent 834d527 commit ad639dd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

mllib/src/main/scala/org/apache/spark/mllib/util/LinearDataGenerator.scala

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@ object LinearDataGenerator {
106106
Array.fill[Double](weights.length)(rnd.nextDouble()))
107107

108108
x.foreach { v =>
109-
var i = 0
110-
while (i < v.length) {
111-
v(i) = (v(i) - 0.5) * math.sqrt(12.0 * xVariance(i)) + xMean(i)
112-
i += 1
113-
}
109+
var i = 0
110+
while (i < v.length) {
111+
v(i) = (v(i) - 0.5) * math.sqrt(12.0 * xVariance(i)) + xMean(i)
112+
i += 1
113+
}
114114
}
115115

116116
val y = x.map { xi =>

0 commit comments

Comments
 (0)