Changeset 57


Ignore:
Timestamp:
04/26/16 09:24:12 (9 years ago)
Author:
sherbold
Message:
  • CLA now working with the median oder the distinct cluster numbers (credits to JC for pointing this out)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrossPare/src/de/ugoe/cs/cpdp/dataprocessing/CLAProcessor.java

    r42 r57  
    1414 
    1515package de.ugoe.cs.cpdp.dataprocessing; 
     16 
     17import java.util.Arrays; 
    1618 
    1719import org.apache.commons.math3.stat.descriptive.rank.Median; 
     
    8991        // determine median of cluster number 
    9092        Median m = new Median(); 
    91         double medianClusterNumber = m.evaluate(clusterNumber); 
     93        double medianClusterNumber = m.evaluate(Arrays.stream(clusterNumber).distinct().toArray()); 
    9294 
    9395        // finally modify the instances 
Note: See TracChangeset for help on using the changeset viewer.