8000 Update README · codee/swift-algorithm-club@b5bda5b · GitHub
[go: up one dir, main page]

Skip to content

Commit b5bda5b

Browse files
committed
Update README
1 parent 7513bc0 commit b5bda5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Linear Regression/README.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ We also need to be able to multiply each element in an array by the correspondin
115115

116116
```swift
117117
func multiply(_ a: [Double], _ b: [Double]) -> [Double] {
118-
return zip(a,b).map { $0.0 * $0.1 }
118+
return zip(a,b).map(*)
119119
}
120120
```
121121

@@ -146,4 +146,4 @@ Well, the line we've found doesn't fit the data perfectly. For one thing, the gr
146146

147147
It turns out that in some of these more complicated models, the iterative approach is the only viable or efficient approach. This can also occur when the arrays of data are very large and may be sparsely populated with data values.
148148

149-
*Written for Swift Algorithm Club by James Harrop*
149+
*Written for Swift Algorithm Club by James Harrop*

0 commit comments

Comments
 (0)
0