Interface Reducer

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      double identity()
      The identity element is used as the initial value.
      double reduce​(double current, double message)
      Computes a new value based on the current value and the message.
    • Method Detail

      • identity

        double identity()
        The identity element is used as the initial value.
      • reduce

        double reduce​(double current,
                      double message)
        Computes a new value based on the current value and the message.