필터 지우기
필터 지우기

inverse function of zscore?

조회 수: 9 (최근 30일)
pietro
pietro 2014년 6월 7일
댓글: pietro 2014년 6월 7일
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