Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2025.0.0 - Português


cmoment

central moments of all orders

Syntax

mom = cmoment(x, ord)
mom = cmoment(x, ord, orientation)

Arguments

x

real or complex vector or matrix

ord

positive integer

orientation

index of the dimension along which the cmoment is computed. It can be either

  • a character "*" (default), "r" or "c"
  • a positive integer: 1 or 2. 1 is equivalent to "r" and 2 is equivalent to "c".
mom

real or complex scalar or vector

Description

cmoment(x, ord) or cmoment(x, ord, orientation) 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 — soma (soma linha, soma coluna) de entradas de um vetor ou matriz
  • median — median (row median, column median,...) of vector/matrix/array entries
  • stdev — standard deviation (row or column-wise) of vector/matrix entries
  • mean — mean of all values, or means along a given dimension
  • 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 — standard deviation (row or column-wise) of vector/matrix entries
  • stdevf — standard deviation
  • variance — variance (and mean) of a vector or matrix (or hypermatrix) of real or complex numbers
  • variancef — variance (and mean) of a vector or matrix of frequency-weighted real or complex numbers
  • nanstdev — standard deviation (ignoring the NANs).
Report an issue
<< Empirical distribution Empirical distribution histc >>

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 24 11:16:52 CEST 2024