0
Gegeben zurück:Wenn die Normierungsfunktion nicht eine Standardabweichung von 1
stdized = function(x)
{
return (x-mean(x)/sd(x))
}
Nach den wiki page describing feature standardisation, die STDEV der Ausgabe dieser Funktion soll 1. Doch sein:
> sd(stdized(c(1,2,3,4,5)))
[1] 1.581139
Warum so?
Sie Klammern sind vermisst. Sie wollen 'return ((x - mean (x))/sd (x))'. Division hat Vorrang vor Subtraktion. – Gregor
Das wird es gut machen. Vielen Dank. – Pyderman