Skip to main content
. 2023 Mar 6;13(5):1001. doi: 10.3390/diagnostics13051001
Algorithm 1 Pseudocode for H2O
Input: PS,Maxite
Output: Optimal Threshold
Begin
Initialize  hawks population Xi (C.U.i);
While (Stopping Condition Not Met) do
Compute → fitness function
For (XiXPS)do
Update Eo and F;
Update Ep using Equation (8);
End For
If (Ep1)Then
Update position using Equation (9);
End If
If (Ep<1)Then
If (𝓻0.5&&|Ep|0.5)
Update → position using Equation (10);
Else If (𝓻0.5&&|Ep|<0.5)Then
Update → position using Equation (11);
Else If (𝓻<0.5&&|Ep|0.5)Then
Update → position using Equation (12);
Else If (𝓻<0.5&&|Ep|<0.5)Then
Update → position using Equation (13);
End If
End If
End While
End