Class EnsembleVotingMedian

  • All Implemented Interfaces:
    EnsembleVoting

    public class EnsembleVotingMedian
    extends java.lang.Object
    implements EnsembleVoting
    Simple combination rule, by taking the median. Note: median is very similar to a majority voting!
    Since:
    0.5.5
    Author:
    Erich Schubert
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  EnsembleVotingMedian.Par
      Parameterization class.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private double quantile
      Quantile to use
    • Constructor Summary

      Constructors 
      Constructor Description
      EnsembleVotingMedian​(double quantile)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double combine​(double[] scores)
      Combine scores function.
      double combine​(double[] scores, int count)
      Combine scores function.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • quantile

        private double quantile
        Quantile to use
    • Constructor Detail

      • EnsembleVotingMedian

        public EnsembleVotingMedian​(double quantile)
        Constructor.
        Parameters:
        quantile - Quantile
    • Method Detail

      • combine

        public double combine​(double[] scores)
        Description copied from interface: EnsembleVoting
        Combine scores function. Note: it is assumed that the scores are comparable.
        Specified by:
        combine in interface EnsembleVoting
        Parameters:
        scores - Scores to combine
        Returns:
        combined score.
      • combine

        public double combine​(double[] scores,
                              int count)
        Description copied from interface: EnsembleVoting
        Combine scores function. Note: it is assumed that the scores are comparable.
        Specified by:
        combine in interface EnsembleVoting
        Parameters:
        scores - Scores to combine
        count - Number of entries to use.
        Returns:
        combined score.