Add Analysis of FAR via CS folder

This commit is contained in:
Ksyer
2023-12-19 17:12:43 +08:00
parent 4a7a8ab31b
commit 82a0353f74
3 changed files with 54 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
function I = calc_int(tau, m)
if tau < 0
I = 0;
else
syms x f;
f = (x - tau) ^ 2 * x ^ (m - 1) * exp(-x ^ 2/2) / (2 ^ (m / 2 - 1) * gamma(m / 2));
I = double(int(f, [tau, +inf]));
end
end