zero mean and one variance

 Respuesta aceptada

Roger Stafford
Roger Stafford el 21 de Nov. de 2013

0 votos

That's easy. Subtract the dataset's mean value from each element. Then divide each element by the dataset's standard deviation. My question to you is, why would you want to do such a thing?

1 comentario

subha
subha el 21 de Nov. de 2013
Editada: subha el 22 de Nov. de 2013
i want to give zero mean and unit variance Gaussian input to my restricted boltzmann machine

Iniciar sesión para comentar.

Más respuestas (1)

Andrei Bobrov
Andrei Bobrov el 21 de Nov. de 2013

0 votos

Normally distributed:
out = randn(1000,1);

2 comentarios

subha
subha el 21 de Nov. de 2013
This will generate some random numbers with zero mean and 1 variance.But,i want to get input from a dataset which has zero mean and 1 variance.So for that i want to make my dataset to that condition
subha
subha el 22 de Nov. de 2013
Editada: subha el 22 de Nov. de 2013
randn() will generate any random values with standard normal distributed value.am i right? how to generate random values fr0m the dataset using randn command

Iniciar sesión para comentar.

Categorías

Etiquetas

Preguntada:

el 21 de Nov. de 2013

Editada:

el 22 de Nov. de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by