Class MergeGreedyToIncreaseObjectFeature

All Implemented Interfaces:
Provider<ObjectCollection>

public class MergeGreedyToIncreaseObjectFeature extends MergeWithOptionalDistanceConstraint
Naive greedy merge strategy when any two neighboring objects are merged if it increases a feature.

No guarantee exists over the priority over which merges occur, so any inferior merge could occur before a superior one, as long as both merges fulfill the conditions.

A merge occurs if the feature is increased in the merge object compared to both pre-merged objects i.e. feature(merged) > feature(object1) and feature(merged) > feature(object2).

Author:
Owen Feehan