Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.1 - Français

Change language to:
English - 日本語 - Português - Русский

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Aide de Scilab >> Statistiques > Measures of Shape > cmoment

cmoment

central moments of all orders

Calling Sequence

mom=cmoment(x,ord)
mom=cmoment(x,ord,'r') or mom=cmoment(x,ord,1)
mom=cmoment(x,ord,'c') or mom=cmoment(x,ord,2)

Arguments

x

real or complex vector or matrix

ord

positive integer

Description

cmoment(x,ord) is the central moment or order ord of the elements of x. If a third argument of type string 'r' (or 1) or 'c' (or 2) is used, we get in the first case, a row vector mom such that mom(j) contains the central moment of order ord of the j column of x. cmoment(x,ord,'c') is used in the same way for the central moments in the rows.

References

Wonacott, T.H. & Wonacott, R.J.; Introductory Statistics, J.Wiley & Sons, 1990.

Examples

x=[0.2113249 0.0002211 0.6653811;
   0.7560439 0.3303271 0.6283918]
mom=cmoment(x,3)
mom=cmoment(x,2,'r')
mom=cmoment(x,3,'c')

See Also

  • sum — somme des éléments d'un tableau.
  • median — médiane des termes d'une matrice
  • st_deviation — écart-type des termes d'une matrice Cette fonction est obsolète.
  • mean — mean (row mean, column mean) of vector/matrix entries
  • meanf — weighted mean of a vector or a matrix
  • moment — non central moments of all orders
  • nanmean — mean (ignoring Nan's)
  • nanmeanf — mean (ignoring Nan's) with a given frequency.
  • stdev — écart-type des termes d'une matrice
  • stdevf — standard deviation
  • variance — variance d'un vecteur, matrice (voire hypermatrice) de nombres réels ou complexes
  • variancef — variance (et moyenne) d'un vecteur ou d'une matrice réelle ou complexe de nombres pondérés en fréquence
  • nanstdev — standard deviation (ignoring the NANs).
Report an issue
<< Measures of Shape Measures of Shape moment >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Oct 02 13:54:33 CEST 2014