The function computeCore is used internally by
the CoreCollection object to compute the core.
computeCore(algorithm, method, dist, groups)applied algorithm to find solution with method: currently, only randomDescent is available
required method for choosing the entries within the groups: A-NE (accession nearest entry), E-NE (entry nearest entry) or E-E (entry entry)
distance matrix, used for distances and implicitly defining the set of entries
the initially created subdivision into groups
The A-NE method requires the core to minimize the average distance between each accession and
the nearest entry within the core. The E-NE method requires the core to maximize the
average distance between each core entry and its nearest neighbouring entry within the core.
The E-E method requires the core to maximize the average distance between all core entries.