comparison scripts/statistics/base/moment.m @ 19630:0e1f5a750d00

maint: Periodic merge of gui-release to default.
author John W. Eaton <jwe@octave.org>
date Tue, 20 Jan 2015 10:24:46 -0500
parents 9ac2357f19bc 446c46af4b42
children 4197fc428c7d
comparison
equal deleted inserted replaced
19626:37d37297acf8 19630:0e1f5a750d00
36 ## 1/N SUM_i (x(i) - mean(x))^p 36 ## 1/N SUM_i (x(i) - mean(x))^p
37 ## @end group 37 ## @end group
38 ## @end example 38 ## @end example
39 ## 39 ##
40 ## @end ifnottex 40 ## @end ifnottex
41 ## 41 ##
42 ## If @var{x} is a matrix, return the row vector containing the @var{p}-th 42 ## If @var{x} is a matrix, return the row vector containing the @var{p}-th
43 ## central moment of each column. 43 ## central moment of each column.
44 ## 44 ##
45 ## The optional string @var{type} specifies the type of moment to be computed. 45 ## The optional string @var{type} specifies the type of moment to be computed.
46 ## Valid options are: 46 ## Valid options are:
47 ## 47 ##
48 ## @table @asis 48 ## @table @asis
49 ## @item @qcode{"c"} 49 ## @item @qcode{"c"}
50 ## Central Moment (default). 50 ## Central Moment (default).
51 ## 51 ##
52 ## @item @qcode{"a"} 52 ## @item @qcode{"a"}
53 ## @itemx @qcode{"ac"} 53 ## @itemx @qcode{"ac"}
54 ## Absolute Central Moment. The moment about the mean ignoring sign 54 ## Absolute Central Moment. The moment about the mean ignoring sign
55 ## defined as 55 ## defined as
67 ## @end example 67 ## @end example
68 ## 68 ##
69 ## @end ifnottex 69 ## @end ifnottex
70 ## 70 ##
71 ## @item @qcode{"r"} 71 ## @item @qcode{"r"}
72 ## Raw Moment. The moment about zero defined as 72 ## Raw Moment. The moment about zero defined as
73 ## 73 ##
74 ## @tex 74 ## @tex
75 ## $$ 75 ## $$
76 ## {\rm moment} (x) = { \sum_{i=1}^N {x_i}^p \over N } 76 ## {\rm moment} (x) = { \sum_{i=1}^N {x_i}^p \over N }
77 ## $$ 77 ## $$
78 ## @end tex 78 ## @end tex