Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

This matrix result confuse me by strange float display: "0. "

enter image description here

import numpy as np
import numpy.linalg as LA
import pandas as pd
import matplotlib.pyplot as plt

path = "./A.csv";
A = pd.read_csv(path).values;

tposeA = np.transpose(A);
normA = LA.norm(A);

X0 = tposeA / ((normA)**2)

print(X0)

I have been working on this piece and it returns strange result in the matrix, do anyone know what this means and how am I suppose to do with this?
Many thanks!!

[First col and 4th row]

[0.0089  0.0035  0.0017  0.0053]
 
[0.0035  0.0089  0.0035  0.0089]
 
[0.0035  0.0178  0.0106  0.0124]
 
[0.(blank)      0.0017  0.0124  0.0267]

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Since you are looking at floating point numbers, 0. means that the number equals exactly zero. It is the way NumPy displays float.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading