@Test
    public void testGetVotesForInstance() {
        System.out.println("getVotesForInstance");
        FeS2 classifier = new FeS2();
        Instance x = trainingSet.instance(0);
        classifier.subspaceStrategyOption.setChosenIndex(0);
        classifier.distanceStrategyOption.setChosenIndex(2);
        classifier.initialClusterWeightOption.setValue(0.1);
        classifier.learningRateAlphaOption.setValue(0.95);
        classifier.minimumClusterSizeOption.setValue(3);
        classifier.outlierDefinitionStrategyOption.setChosenIndex(0);
       // classifier.pruneThresholdOption.setValue(0.00001);
        classifier.updateStrategyOption.setChosenIndex(1);
        classifier.trainOnInstance(trainingSet.instance(0));
        double[] result = classifier.getVotesForInstance(x);
        int h = (int) result[weka.core.Utils.maxIndex(result)];
        int y = 1;
        assertEquals(y,h);
        // TODO - add fuller set
    }
@Test
    public void testGetVotesForInstance() {
        System.out.println("getVotesForInstance");
        FeS2 classifier = new FeS2();
        Instance x = trainingSet.instance(0);
        classifier.subspaceStrategyOption.setChosenIndex(0);
        classifier.distanceStrategyOption.setChosenIndex(2);
        classifier.initialClusterWeightOption.setValue(0.1);
        classifier.learningRateAlphaOption.setValue(0.95);
        classifier.minimumClusterSizeOption.setValue(3);
        classifier.outlierDefinitionStrategyOption.setChosenIndex(0);
      
        classifier.updateStrategyOption.setChosenIndex(1);
        classifier.trainOnInstance(trainingSet.instance(0));
        double[] result = classifier.getVotesForInstance(x);
        int h = (int) result[weka.core.Utils.maxIndex(result)];
        int y = 1;
        assertEquals(y,h);
       
    }
@test public void testgetvotesforinstance() { system.out.println("getvotesforinstance"); fes2 classifier = new fes2(); instance x = trainingset.instance(0); classifier.subspacestrategyoption.setchosenindex(0); classifier.distancestrategyoption.setchosenindex(2); classifier.initialclusterweightoption.setvalue(0.1); classifier.learningratealphaoption.setvalue(0.95); classifier.minimumclustersizeoption.setvalue(3); classifier.outlierdefinitionstrategyoption.setchosenindex(0); classifier.updatestrategyoption.setchosenindex(1); classifier.trainoninstance(trainingset.instance(0)); double[] result = classifier.getvotesforinstance(x); int h = (int) result[weka.core.utils.maxindex(result)]; int y = 1; assertequals(y,h); }