SoFunction
Updated on 2024-12-10

Method of calculating the standard deviation of a matrix

Calculate the matrix standard deviation

>>> a = ([[1, 2], [3, 4]])
>>> (a) # Calculate the global standard deviation
1.1180339887498949
>>> (a, axis=0) # axis=0 Calculate the standard deviation of each column
array([ 1., 1.])
>>> (a, axis=1) # Calculate the standard deviation for each row
array([ 0.5, 0.5])

The Official Handbook:/doc/numpy/reference/generated/

This above () method of calculating the standard deviation of a matrix is all that I have shared with you, and I hope that it will give you a reference, and I hope that you will support me more.