Commit c10f9000 authored by Pengfei Xue's avatar Pengfei Xue

print Coefficient of Variation,CV

parent a1f1829e
...@@ -87,6 +87,10 @@ object pvCheker { ...@@ -87,6 +87,10 @@ object pvCheker {
println(summary.mean) // a dense vector containing the mean value for each column println(summary.mean) // a dense vector containing the mean value for each column
println(summary.variance) // column-wise variance println(summary.variance) // column-wise variance
println(summary.numNonzeros) // number of nonzeros in each column println(summary.numNonzeros) // number of nonzeros in each column
}
println("Coefficient of Variation,CV")
for (i <- 1 to summary.mean.size) {
println(summary.variance(i) / summary.mean(i))
}
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment