Class ArrayMedian

java.lang.Object
ortus.boxlang.runtime.bifs.BIF
ortus.boxlang.runtime.bifs.global.array.ArrayMedian

@BoxBIF @BoxMember(type=ARRAY) public class ArrayMedian extends BIF
  • Constructor Details

    • ArrayMedian

      public ArrayMedian()
      Constructor
  • Method Details

    • _invoke

      public Object _invoke(IBoxContext context, ArgumentsScope arguments)
      Return the median value of an array. Will only work on arrays that contain only numeric values.
      Specified by:
      _invoke in class BIF
      Parameters:
      context - The context in which the BIF is being invoked.
      arguments - Argument scope for the BIF.
      Returns:
      The result of the invocation