class NewComponentStatisticsAggregator implements Serializable {

    void add(Vector x, boolean isAnomaly) {
        if (isAnomaly) {
            if (sumOfAnomalies == null)
                sumOfAnomalies = x.copy();
            else
                sumOfAnomalies = sumOfAnomalies.plus(x);

            rowCountForNewCluster += 1;
        }

        totalRowCount += 1;
    }

    public  NewComponentStatisticsAggregator(long totalRowCount, long rowCountForNewCluster, Vector sumOfAnomalies);
    public  NewComponentStatisticsAggregator();

}