Why does boxcox give a vector of identical values?

조회 수: 4 (최근 30일)
Masoud
Masoud 2017년 2월 6일
편집: Carl 2017년 2월 8일
I use boxcox for a positive vector with the size of 160711. I get Lambda=1.2500e-04, and a vector of transformed data, whose all elements are the same and equal to 2.5956757119. Could someone help me understand why I get such results? I have attached the data, and I use following commands:
[NewData,L]=boxcox(Data);

채택된 답변

Carl
Carl 2017년 2월 8일
편집: Carl 2017년 2월 8일
See the documentation for boxcox here:
It states that the data vector must be positive and specified as a column data vector. So you simply need to transpose your current Data vector:
Data = Data';
Now calling boxcox on it should get the right results!

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by