내가 옥타브에서 M-파일을 실행하기 위해 노력하고있어하지만 난이 오류를 얻을 : pkg load statistics
를 실행 한 후옥타브는 " 'ncx2cdf'정의되지 않은"오류
Octave evaluation error: 'ncx2cdf' undefined
내가 옥타브에서 M-파일을 실행하기 위해 노력하고있어하지만 난이 오류를 얻을 : pkg load statistics
를 실행 한 후옥타브는 " 'ncx2cdf'정의되지 않은"오류
Octave evaluation error: 'ncx2cdf' undefined
는 분명히 비 중심 카이 제곱 분포는 simply defined as 1 minus the Marcum Q function입니다. 옥타브 - 위조에서 signal package은이 기능을 위해 an implementation을 제공합니다 (matlab과 겉보기 호환).
같은 X에 대한>> X = randi(100, [1,20]); V = 4; Delta = 10;
>> ncx2cdf(X, V, Delta)
ans =
1.0000 0.9410 0.9999 1.0000 1.0000 1.0000 1.0000 0.5549 0.6093 0.9410 1.0000 0.9410 1.0000 0.9279 1.0000 0.9920 0.8183 0.9410 1.0000 0.9997
>> 1 - marcumq(sqrt(Delta), sqrt(X), V/2)
ans =
1.0000 0.9410 0.9999 1.0000 1.0000 1.0000 1.0000 0.5549 0.6093 0.9410 1.0000 0.9410 1.0000 0.9279 1.0000 0.9920 0.8183 0.9410 1.0000 0.9997
옥타브 세션, V, 델타 :
MATLAB에function Out = myncx2cdf (X, V, Delta)
Out = 1 - marcumq (sqrt (Delta), sqrt (X), V/2);
end
을 확정 다음과 같이
따라서 당신은 아마도 단순히 자신의 ncx2cdf
기능을 쓸 수있다
octave:34> pkg load signal
octave:35> 1 - marcumq(sqrt(Delta), sqrt(X), V/2)
ans =
1.00000 0.94105 0.99988 1.00000 1.00000 1.00000 0.99996 0.55492 0.60929 0.94105 1.00000 0.94105 1.00000 0.92793 1.00000 0.99203 0.81831 0.94105 1.00000 0.99972
자유도 매개 변수 V는 짝수 이 구현으로 값. 홀수 자유도를 사용하려는 경우 (예 : 5 일 때, 이것은 V = 4 및 V = 6에 대한 결과로부터 보간 될 수 있습니다 (이것은 실제로 잘 작동하는 것처럼 보입니다).
, 내가 ncx2cdf을 찾았지만 준 다음과 같은 경고 :
the 'ncx2cdf' function belongs to the statistics package from Octave Forge but has not yet been implemented Please read http://www.octave.org/missing.html to learn how you can contribute missing functionality.
음 ...