필터 지우기
필터 지우기

zero mean and one variance

조회 수: 1 (최근 30일)
subha
subha 2013년 11월 21일
편집: subha 2013년 11월 22일
How to make dataset into zero mean and 1 variance

채택된 답변

Roger Stafford
Roger Stafford 2013년 11월 21일
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
subha
subha 2013년 11월 21일
편집: subha 2013년 11월 22일
i want to give zero mean and unit variance Gaussian input to my restricted boltzmann machine

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Andrei Bobrov
Andrei Bobrov 2013년 11월 21일
Normally distributed:
out = randn(1000,1);
  댓글 수: 2
subha
subha 2013년 11월 21일
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 2013년 11월 22일
편집: subha 2013년 11월 22일
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

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by