Initialize Hayden project repository

This commit is contained in:
deamonkai
2026-03-28 11:22:16 -05:00
commit 595c63b934
11 changed files with 525 additions and 0 deletions

7
code/getMD.m Normal file
View File

@@ -0,0 +1,7 @@
function missDist = getMD(vClosing,simTime,relRange)
%Algorithm to compute PCA (point of closest approach).
delVc = vClosing(end)-vClosing(end-1);
delT = simTime(end)-simTime(end-1);
tMiss = -vClosing(end-1)*(delT/delVc);
missDist = abs(relRange(end-1)+vClosing(end-1)*tMiss);
end