Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: kurtosis - Function Up: mathematics - Module Previous: stddev - Function


skew - Function



Package utility
Module mathematics


Calculate the skew of a set of numbers


Synopsis
skew(dots, assumed_mean)


Description
This is a more convenient front end to moments. The skew is the third moment.

You can tell it to assume a mean rather than calculating it if desired. NB: The assumed_mean argument must be explicitly indicated as in the example below ('assumed_mean=0', not just '0'); otherwise, the value specified will simply be included in the list of samples.



Arguments

dots   The numbers to perform statistics on
assumed_mean   If numeric, assume the mean is this value rather than calculating it; if used, parameter name must be explicitly specified
    Allowed: numeric scalar
    Default: [=]


Returns
the skew


Example
      - include "statistics.g"
      - skew(1:100)
      0 
      - skew(1:100,assumed_mean=50)  # instead of 50.5
      0.0511687


See Also
moments



next up previous contents index
Next: kurtosis - Function Up: mathematics - Module Previous: stddev - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15