Class Average

java.lang.Object
com.udojava.evalex.AbstractLazyFunction
com.udojava.evalex.AbstractFunction
me.hsgamer.hscore.expression.number.Average
All Implemented Interfaces:
com.udojava.evalex.Function, com.udojava.evalex.LazyFunction

public class Average extends com.udojava.evalex.AbstractFunction
Calculate the average number
Ex: AVG(1, 2, 3, 4, 5)
  • Field Summary

    Fields inherited from class com.udojava.evalex.AbstractLazyFunction

    booleanFunction, name, numParams
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull BigDecimal
    eval(@NotNull List<BigDecimal> parameters)
     

    Methods inherited from class com.udojava.evalex.AbstractFunction

    lazyEval

    Methods inherited from class com.udojava.evalex.AbstractLazyFunction

    getName, getNumParams, isBooleanFunction, numParamsVaries

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.udojava.evalex.LazyFunction

    getName, getNumParams, isBooleanFunction, numParamsVaries
  • Constructor Details

    • Average

      public Average()
  • Method Details