3
使用微风我想用微风火花执行一些计算并最终实施的R包火花https://stackoverflow.com/questions/36727811/spark-weighted-repeated-median-smoothing-and-filtering火花
不过,我遇到入门微风问题。如果有火花结合微风implicits似乎并不正确
import breeze.linalg.{ DenseVector => BDV }
import breeze.stats.distributions.Poisson
import org.apache.spark.sql.SQLContext
import org.apache.spark.{ SparkConf, SparkContext}
import breeze.stats.{ mean => bmean}
import breeze.stats._
class RobfilterR extends App {
val conf = new SparkConf().setAppName("RobfilterR").setMaster("local[*]")
val sc = new SparkContext(conf)
val sql = new SQLContext(sc)
val poi = Poisson(3.0)
val x = poi.sample(10)
val v = BDV(x.toArray)
bmean(v)
}
导入,而是因为implicits不正确导入基本微风功能不工作了。这里有什么问题?
error: could not find implicit value for parameter impl: breeze.stats.mean.Impl[breeze.linalg.DenseVector[Int],VR]
bmean(v)