package de.ugoe.cs.cpdp.dataprocessing; import org.apache.commons.collections4.list.SetUniqueList; import weka.core.Attribute; import weka.core.Instance; import weka.core.Instances; import weka.experiment.Stats; /** * Normalizes each attribute of each data set separately. * @author Steffen Herbold */ public class Normalization implements ISetWiseProcessingStrategy, IProcessesingStrategy { /** * @see de.ugoe.cs.cpdp.dataprocessing.SetWiseProcessingStrategy#apply(weka.core.Instances, org.apache.commons.collections4.list.SetUniqueList) */ @Override public void apply(Instances testdata, SetUniqueList traindataSet) { final Attribute classAtt = testdata.classAttribute(); for( int i=0 ; itrainstats.min ) { minVal = trainstats.min; } if( maxValtrainstats.min ) { minVal = trainstats.min; } if( maxVal