/**
* Applies a function `f` to all the active elements of dense and sparse vector.
*
* @param f the function takes two parameters where the first parameter is the index of
* the vector with type `Int`, and the second parameter is the corresponding value
* with type `Double`.
*/
@Since("1.6.0")
def foreachActive(f: (Int, Double) => Unit): Unit
learning from package org.apache.spark.mllib.stat
foreachActive方法
最新推荐文章于 2022-04-20 10:20:32 发布