Interface Statistic

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default String formatFixed​(double value, int numberCharacters)
      Return a formatted string with 2 digits precision for a floating point value that fits the number of characters.
      String getDescription()
      Returns the description of the statistic.
      long getN()
      Return the current number of observations.
      void initialize()
      Initialize the statistic.
      String reportLine()
      Return a string representing a line with important statistics values for this statistic, for a textual table with a monospaced font that can contain multiple statistics.
    • Method Detail

      • initialize

        void initialize()
        Initialize the statistic.
      • getDescription

        String getDescription()
        Returns the description of the statistic.
        Returns:
        String; the description of the statistic
      • getN

        long getN()
        Return the current number of observations.
        Returns:
        long; the number of observations
      • reportLine

        String reportLine()
        Return a string representing a line with important statistics values for this statistic, for a textual table with a monospaced font that can contain multiple statistics.
        Returns:
        String; line with most important values of the statistic
      • formatFixed

        default String formatFixed​(double value,
                                   int numberCharacters)
        Return a formatted string with 2 digits precision for a floating point value that fits the number of characters. The formatter will fall back to scientific notation when the value does not fit with floating point notation.
        Parameters:
        value - double; the value to format
        numberCharacters - int; the number of characters for the result
        Returns:
        String; a string representation with the given number of characters