* @param clustering Clustering result
* @param expected Expected score
*/
protected <O> void testFMeasureHierarchical(Database database, Clustering<?> clustering, double expected) {
// Run by-label as reference
ByLabelHierarchicalClustering bylabel = new ByLabelHierarchicalClustering();
Clustering<Model> rbl = bylabel.run(database);
double score = PairCountingFMeasure.compareClusterings(clustering, rbl, 1.0, false, true);
if(logger.isVerbose()) {
logger.verbose(this.getClass().getSimpleName() + " score: " + score + " expect: " + expected);
}