public static List<Cluster> getClustersWhereAverageDistanceFromCenterGreaterThan(final ClusterSet clusterSet,
                    final ClusterSetInfo info, double maximumAverageDistance) {
        List<Cluster> clusters = new ArrayList<>();
        for (Cluster cluster : clusterSet.getClusters()) {
            ClusterInfo clusterInfo = info.getClusterInfo(cluster.getId());
            if (clusterInfo != null) {
                //distances
                if (clusterInfo.isInverse()) {
                    if (clusterInfo.getAveragePointDistanceFromCenter() < maximumAverageDistance)
                        clusters.add(cluster);
                } else {
                    if (clusterInfo.getAveragePointDistanceFromCenter() > maximumAverageDistance)
                        clusters.add(cluster);
                }

            }

        }
        return clusters;
    }
public static List < Cluster > getClustersWhereAverageDistanceFromCenterGreaterThan ( final ClusterSet clusterSet , final ClusterSetInfo info , double maximumAverageDistance ) { List < Cluster > clusters = new ArrayList < > ( ) ; for ( Cluster cluster : clusterSet . getClusters ( ) ) { ClusterInfo clusterInfo = info . getClusterInfo ( cluster . getId ( ) ) ; if ( clusterInfo != null ) { if ( clusterInfo . isInverse ( ) ) { if ( clusterInfo . getAveragePointDistanceFromCenter ( ) < maximumAverageDistance ) clusters . add ( cluster ) ; } else { if ( clusterInfo . getAveragePointDistanceFromCenter ( ) > maximumAverageDistance ) clusters . add ( cluster ) ; } } } return clusters ; }
@param clusterSet
@param info
@param maximumAverageDistance
@return