simple-squiggle

A restricted subset of Squiggle
Log | Files | Refs | README

std.js (543B)


      1 export var stdDocs = {
      2   name: 'std',
      3   category: 'Statistics',
      4   syntax: ['std(a, b, c, ...)', 'std(A)', 'std(A, normalization)'],
      5   description: 'Compute the standard deviation of all values, defined as std(A) = sqrt(variance(A)). Optional parameter normalization can be "unbiased" (default), "uncorrected", or "biased".',
      6   examples: ['std(2, 4, 6)', 'std([2, 4, 6, 8])', 'std([2, 4, 6, 8], "uncorrected")', 'std([2, 4, 6, 8], "biased")', 'std([1, 2, 3; 4, 5, 6])'],
      7   seealso: ['max', 'mean', 'min', 'median', 'prod', 'sum', 'variance']
      8 };