Package jadex.commons

Class SFunction


  • public class SFunction
    extends java.lang.Object
    Static helper class for calculating statistical functions.
    • Constructor Summary

      Constructors 
      Constructor Description
      SFunction()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static double mean​(java.lang.Object numbers)
      Calculate the mean value.
      static double sum​(java.lang.Object numbers)
      Calculate the sum of values.
      • Methods inherited from class java.lang.Object

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

      • SFunction

        public SFunction()
    • Method Detail

      • mean

        public static double mean​(java.lang.Object numbers)
        Calculate the mean value.
        Parameters:
        numbers - The numbers (as some form of iterable element).
      • sum

        public static double sum​(java.lang.Object numbers)
        Calculate the sum of values.
        Parameters:
        numbers - The numbers (as some form of iterable element).