Warning: Use of undefined constant Symbol - assumed 'Symbol' (this will throw an Error in a future version of PHP) in /mnt/new-ebs/workbench-106550/lib/dojo/util/docscripts/lib/parser2/dojo2.inc on line 215 Warning: Use of undefined constant JavaScriptSymbol - assumed 'JavaScriptSymbol' (this will throw an Error in a future version of PHP) in /mnt/new-ebs/workbench-106550/lib/dojo/util/docscripts/lib/parser2/dojo2.inc on line 215

dojox/math/stats.js

  • Provides:

    • dojox.math.stats
  • dojox.math.stats.sd

    • parameters:
      • a: (typeof Number[])
    • returns
      Number
    • summary
      Returns the standard deviation of the passed arguments.
    • type
      Function
  • dojox.math.stats.variance

    • parameters:
      • a: (typeof Number[])
    • returns
      Number
    • summary
      Find the variance in the passed array of numbers.
    • type
      Function
  • dojox.math.stats.bestFit

    • parameters:
      • a: (typeof Object[])
        || Number[]
      • xProp: (typeof String)
      • yProp: (typeof String)
    • returns
      Object
    • summary
      Calculate the slope and intercept in a linear fashion.  An array
      of objects is expected; optionally you can pass in the property
      names for "x" and "y", else x/y is used as the default.  If you
      pass an array of numbers, it will be mapped to a set of {x,y} objects
      where x = the array index.
    • type
      Function
  • dojox.math.stats.forecast

    • parameters:
      • a: (typeof Object[])
        || Number[]
      • x: (typeof Number)
      • xProp: (typeof String)
      • yProp: (typeof String)
    • returns
      Number
    • summary
      Using the bestFit algorithm above, find y for the given x.
    • type
      Function
  • dojox.math.stats.mean

    • parameters:
      • a: (typeof Number[])
    • returns
      Number
    • summary
      Returns the mean value in the passed array.
    • type
      Function
  • dojox.math.stats.min

    • parameters:
      • a: (typeof Number[])
    • returns
      Number
    • summary
      Returns the min value in the passed array.
    • type
      Function
  • dojox.math.stats.max

    • parameters:
      • a: (typeof Number[])
    • returns
      Number
    • summary
      Returns the max value in the passed array.
    • type
      Function
  • dojox.math.stats.median

    • parameters:
      • a: (typeof Number[])
    • returns
      Number
    • summary
      Returns the value closest to the middle from a sorted version of the passed array.
    • type
      Function
  • dojox.math.stats.mode

    • parameters:
      • a: (typeof Number[])
    • returns
      Number
    • summary
      Returns the mode from the passed array (number that appears the most often).
      This is not the most efficient method, since it requires a double scan, but
      is ensures accuracy.
    • type
      Function
  • dojox.math.stats.sum

    • parameters:
      • a: (typeof Number[])
    • returns
      Number
    • summary
      Return the sum of all the numbers in the passed array.  Does
      not check to make sure values within a are NaN (should simply
      return NaN).
    • type
      Function
  • dojox.math.stats.approxLin

    • parameters:
      • a: (typeof Number[]:)
        a sorted numeric array to be used for the approximation.
      • pos: (typeof Number:)
        a position number from 0 to 1. If outside of this range it
        will be clamped.
    • returns
      Number
    • summary
      Returns a linearly approximated value from an array using
      a normalized float position value.
    • return_summary
      Number
    • type
      Function
  • dojox.math.stats.summary

    • parameters:
      • a: (typeof Number[]:)
        a numeric array to be appraised.
      • alreadySorted: (typeof Boolean:)
        a Boolean flag to indicated that the array is already sorted.
        This is an optional flag purely to improve the performance.
        If skipped, the array will be assumed unsorted.
    • returns
      sort it properly|Object
    • summary
      Returns a non-parametric collection of summary statistics:
      the classic five-number summary extended to the Bowley's
      seven-figure summary.
    • return_summary
      Object
    • type
      Function
  • dojox.math.stats

    • alias - dojox.math.stats
  • dojox.math

    • type
      Object
  • dojox

    • type
      Object