# higher_order_moment#

ivy.higher_order_moment(x, order, /, *, out=None)[source]#

Compute the Higher-Order Moment.

Parameters:
• x (`Union`[`Array`, `NativeArray`]) – matrix of size (n_samples, n_features) or tensor of size(n_samples, D1, …, DN)

• order (`int`) – number of the higher-order moment to compute

Return type:

`Array`

Returns:

tensor – if tensor is a matrix of size (n_samples, n_features), tensor of size (n_features, )*order

Examples

```>>> a = ivy.array([[1, 2], [3, 4]])
>>> result = ivy.higher_order_moment(a, 3)
>>> print(result)
ivy.array([[
[14, 19],
[19, 26]],
[[19, 26],
[26, 36]
]])
```
Array.higher_order_moment(self, order, /, *, out=None)[source]#

ivy.Array instance method variant of ivy.higher_order_moment. This method simply wraps the function, and so the docstring for ivy.higher_order_moment also applies to this method with minimal changes.

Parameters:
• x – matrix of size (n_samples, n_features) or tensor of size(n_samples, D1, …, DN)

• order (`int`) – number of the higher-order moment to compute

Return type:

`Array`

Returns:

tensor – if tensor is a matrix of size (n_samples, n_features), tensor of size (n_features, )*order

Examples

```>>> a = ivy.array([[1, 2], [3, 4]])
>>> result = ivy.higher_order_moment(a, 3)
>>> print(result)
ivy.array([[
[14, 19],
[19, 26]],
[[19, 26],
[26, 36]
]])
```
Container.higher_order_moment(self, order, /, *, out=None, key_chains=None, to_apply=True, prune_unapplied=False, map_sequences=False)[source]#

ivy.Container instance method variant of ivy.higher_order_moment. This method simply wraps the function, and so the docstring for ivy.higher_order_moment also applies to this method with minimal changes.

Parameters:
• x – matrix of size (n_samples, n_features) or tensor of size(n_samples, D1, …, DN)

• order (`Union`[`Sequence`[`int`], `Container`]) – number of the higher-order moment to compute

Return type:

`Container`

Returns:

tensor – if tensor is a matrix of size (n_samples, n_features), tensor of size (n_features, )*order

Examples

```>>> a = ivy.array([[1, 2], [3, 4]])
>>> result = ivy.higher_order_moment(a, 3)
>>> print(result)
ivy.array([[
[14, 19],
[19, 26]],
[[19, 26],
[26, 36]
]])
```