commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luc Maisonobe <...@spaceroots.org>
Subject Re: [Math] Normalizing a random vector.
Date Sun, 07 Dec 2014 16:34:36 GMT
Le 07/12/2014 17:16, Ajo Fod a écrit :
> Is there way in the current codebase to get  Y = (X- mean(X))/Sdev(X).
> where X is a vector ?

Not in one operation.
You need to first uset toArray, next to compute the mean and standard
deviation, and finally to evaluate the expression for all components.

best regards,
Luc

> 
> -Ajo.
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message