Skip to content
Snippets Groups Projects
Commit 3cc48dad authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Adding method for stats to file

parent a2b3d004
No related branches found
No related tags found
No related merge requests found
......@@ -82,4 +82,11 @@ class Histogram[T](_counts: Map[T, Long] = Map[T, Long]())(implicit ord: Numeric
} else Map()
}
/** Write histogram to a tsv/count file */
def writeAggregateToTsv(file: File): Unit = {
val writer = new PrintWriter(file)
aggregateStats.foreach(x => writer.println(x._1 + "\t" + x._2))
writer.close()
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment