Friday, September 11, 2020

Cov method over arrays in python

 Cov method over arrays in python


 

 

           Cov method over arrays in python

Cov method over arrays in python is used to find the

covariance of all elements in the array

 

example

from numpy import *

arr = array([1,2,3,4,5,6])

print("Original Array:", arr)

print("Covariance value:", cov(arr))

 

output

Original Array: [1 2 3 4 5 6]
Covariance value: 3.5

 

 


No comments:

Post a Comment

Durga Puja in Odisha

 Durga Puja in Odisha