Filter löschen
Filter löschen

inverse function of zscore?

9 Ansichten (letzte 30 Tage)
pietro
pietro am 7 Jun. 2014
Kommentiert: pietro am 7 Jun. 2014
Hi all,
is there any inverse function of zscore?

Akzeptierte Antwort

li haitao
li haitao am 7 Jun. 2014
Bearbeitet: li haitao am 7 Jun. 2014
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 Kommentar
pietro
pietro am 7 Jun. 2014
Thanks to all, I supposed there was an embedded function I wanted to use to improve the code readability.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Star Strider
Star Strider am 7 Jun. 2014
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