PYTHON  Import the green channel of the following image URL (make sure your code works for this URL):  https://raw.githubusercontent.com/dpploy/chen-3170/master/notebooks/images/nerve-cells.jpg as a matrix A intended for linear algebra operations and show the matrix as an image as below (make sure the data is normalized). Show the complete data type specification of the matrix including maximum, minimum, average, and standard deviation values.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

PYTHON 

Import the green channel of the following image URL (make sure your code works for this URL):

 https://raw.githubusercontent.com/dpploy/chen-3170/master/notebooks/images/nerve-cells.jpg

as a matrix A intended for linear algebra operations and show the matrix as an image as below (make sure the data is normalized). Show the complete data type specification of the matrix including maximum, minimum, average, and standard deviation values.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 1 images

Blurred answer
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

Compute the LU factorization of the symmetric part of A(100*100)and verify that your factorization is correct; explain. The symmetric part of a matrix sym(A) is defined as

sym(A) =( A+ A^T)/2
 Make your best visual demonstration (art contest) that it (the sym(A)
 matrix) is indeed symmetric.

The LU factorization program code is :

def lu_factorization(A):

2  """

3  Performs LU factorization of a matrix A without pivoting.

4

5  Args:

6    A: A square matrix.

7

8  Returns:

9    A tuple (L, U) where L is the lower triangular matrix and U is the upper triangular matrix.

10  """

11  n = len(A)

12  L = [[0.0] * n for _ in range(n)]

13  U = [[0.0] * n for _ in range(n)]

14

15  for k in range(n - 1):

16    for i in range(k + 1, n):

17

18      mik = A[i][k] / A[k][k]

19      L[i][k] = mik

20

21      for j in range(k + 1, n):

22        A[i][j] = A[i][j] - mik * A[k][j]

23

24      U[k][i] = mik

25

26  for i in range(n):

27    L[i][i] = 1.0

28

29  return L, U

30

31A = [[1.0, 2.0, 3.0],

32     [4.0, 5.0, 6.0],

33     [7.0, 8.0, 9.0]]

34

35L, U = lu_factorization(A)

36

37print("L:")

38for row in L:

39  print(row)

40

41print("U:")

42for row in U:

43  print(row)

 

 

Solution
Bartleby Expert
SEE SOLUTION
Knowledge Booster
Problems on Dynamic Programming
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education