Python | Numpy matrix.std()
With the help of matrix.std()
method, we are able to find the standard deviation a matrix by using the same method.
Syntax : matrix.std()
Return : Return standard deviation of a matrix
Example #1 :
In this example we are able to find the standard deviation of a matrix by using matrix.std()
method.
import numpy as np
gfg = np.matrix( '[4, 1; 12, 3]' )
geek = gfg.std()
print (geek)
|
Example #2 :
import numpy as np
gfg = np.matrix( '[4, 1, 9; 12, 3, 1; 4, 5, 6]' )
geek = gfg.std()
print (geek)
|
Last Updated :
20 May, 2019
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...