Azzera filtri
Azzera filtri

zero mean and one variance

1 visualizzazione (ultimi 30 giorni)
subha
subha il 21 Nov 2013
Modificato: subha il 22 Nov 2013
How to make dataset into zero mean and 1 variance

Risposta accettata

Roger Stafford
Roger Stafford il 21 Nov 2013
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 Commento
subha
subha il 21 Nov 2013
Modificato: subha il 22 Nov 2013
i want to give zero mean and unit variance Gaussian input to my restricted boltzmann machine

Accedi per commentare.

Più risposte (1)

Andrei Bobrov
Andrei Bobrov il 21 Nov 2013
Normally distributed:
out = randn(1000,1);
  2 Commenti
subha
subha il 21 Nov 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 il 22 Nov 2013
Modificato: subha il 22 Nov 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

Accedi per commentare.

Community Treasure Hunt

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

Start Hunting!

Translated by