伪代码编号从 0 开始一直为零

伪代码编号从 0 开始一直为零

我正在 IEEE 访问模板中编写如下的伪代码。

\begin{algorithm}
\caption{FVI (X, k, m, $\mu$)}
\label{alg:fvi}
\textbf{Input:} Dataset $X$, number of clusters $k$, weighting exponent $m$, and fuzzy membership values $\mu$.\\
\textbf{Output:} A new validity index,FVI
\hline
\begin{algorithmic}[1] % Start line numbering from 1
\For{each $C_l$}
    \For{each $X_i$}
        \State Calculate $\delta_{il}$ as Equation 5
        \State Calculate SDSC as Equation 8
        \State Calculate $\gamma_i$ as Equation 7
        \State Calculate $FVI$ as Equation 6
    \EndFor
\EndFor
\end{algorithmic}
\State Output the $FVI$
\end{algorithm}

问题是:

  1. 我希望编号从 1 开始,但编号从 0 开始
  2. 连续编号 0

请帮忙修改代码,使编号从 1 开始并继续。

如图所示: 在此处输入图片描述

相关内容