We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 834d527 commit ad639ddCopy full SHA for ad639dd
mllib/src/main/scala/org/apache/spark/mllib/util/LinearDataGenerator.scala
@@ -106,11 +106,11 @@ object LinearDataGenerator {
106
Array.fill[Double](weights.length)(rnd.nextDouble()))
107
108
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
- }
+ var i = 0
+ while (i < v.length) {
+ v(i) = (v(i) - 0.5) * math.sqrt(12.0 * xVariance(i)) + xMean(i)
+ i += 1
+ }
114
}
115
116
val y = x.map { xi =>
0 commit comments