Skip to main content
. 2023 Jan 13;10(1):115. doi: 10.3390/bioengineering10010115
Algorithm 1 MCM implementation.

   X[x1,x2,x3,…,xn];U[u1,u2,u3,…,un]

M←c1 //Initialize M (number of iterations)

A[n:M] // The array A is declared

A(1,1:M)←f(M,x1,u1,pdf) //Assigns random number with proper PDF

A(2,1:M)←f(M,x2,u2,pdf)

A(3,1:M)←f(M,x3,u3,pdf)

⋮

A(n,1:M)←f(M,xn,un,pdf)

   Y[n+1:M+2] //The array Y is declared


Y(n+1,1:M)←g(A) //Function g defines the mathematical model

Y(n+1,M+1)←average(Y(n+1,1:M))

A(n+1,M+2)←standardDeviation(Y(n+1,1:M))

   B[n:M]←h(n,X) //The array B is declared with n lines constants


   for i=1 to n


Z[1:M]←B(i:M)

B(i:M)←A(i:M)

Y(i,1:M)←g(B)

Y(i,M+1)←average(Y(i,1:M))

Y(i,M+2)←standardDeviation(Y(i,1:M))

B(i:M)←Z