Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
here is the code in python
x = np.array( [ [1, 10, 4], [3, 2, 1], [5, 1, 0] ] , dtype = np.float128 );
x = zscore(x, axis = 0);
print x;
the output is
[[-1.2247449 1.40693 1.3728129]
[ 0.0 -0.57932412 -0.39223227]
[ 1.2247449 -0.82760589 -0.98058068]]
In matlab,
xxx = [1 10 4 ; 3 2 1; 5 1 0]
zscore(xxx)
output is
-1.0000 1.1488 1.1209
0 -0.4730 -0.3203
1.0000 -0.6757 -0.8006
why sciPy.stats.zscore and matlab zscore function are different?
–
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.