inverse function of zscore?

9 次查看(过去 30 天)
Hi all,
is there any inverse function of zscore?

采纳的回答

li haitao
li haitao 2014-6-7
编辑:li haitao 2014-6-7
Give you an exmaple:
>> load('lawdata.mat')
>> [Z,gpamean,gpastdev] = zscore(gpa);
>> gpa2=Z*gpastdev+gpamean;
>> gpa2-gpa
ans =
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
So gpa2 is the same with gpa.
  1 个评论
pietro
pietro 2014-6-7
Thanks to all, I supposed there was an embedded function I wanted to use to improve the code readability.

请先登录,再进行评论。

更多回答(1 个)

Star Strider
Star Strider 2014-6-7
To get x from Z knowing the mean (mu) and standard deviation (s):
x = Z*s + mu

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by