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)