필터 지우기
필터 지우기

Variance function in matlab

조회 수: 2 (최근 30일)
atan
atan 2019년 6월 16일
답변: Guillaume 2019년 6월 16일
The variance function in matlab "var" by default normalizes V by N-1 if N>1, where N is the sample size
If I want to normalize by the sampel size "N" NOT N-1, is it right to use:
V = var(X,1)
if I were to normalize by the sample size "N"?
Regards
Ajay

채택된 답변

Guillaume
Guillaume 2019년 6월 16일
Yes, this is exactly what it says in the documentation.
Weight, specified as one of:
  • 0 — normalizes by the number of observations-1. If there is only one observation, the weight is 1.
  • 1 — normalizes by the number of observations.
  • a vector made up of nonnegative scalar weights corresponding to the dimension of A along which the variance is calculated.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by