This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def dot(first: Array[Array[Double]], second: Array[Int]): Array[Double] = { | |
val result = new Array[Double](first.size) | |
for (i <- 0 to (first.size - 1)) { | |
result(i) = dotProduct(first(i), second) | |
} | |
return result | |
} | |
def dotProduct(first: Array[Double], second: Array[Int]): Double = { | |
require(first.size == second.size) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.strike.etl | |
import java.io.FileWriter | |
import akka.actor.Actor | |
import com.typesafe.config.ConfigFactory | |
import org.slf4j.LoggerFactory | |
/** | |
* Created by Lehel on 12/13/2014. |
NewerOlder