I trying to customize the line number of my algorithm with the algorithm2e
package.
I want to start the line number at a specific line or just a given line.
I am using the following code example:
\documentclass{article}
\usepackage[linesnumbered,ruled,vlined]{algorithm2e}
\begin{document}
\begin{algorithm}[!ht]
\caption{Overlapped Co-Clustering}
\DontPrintSemicolon
\SetNoFillComment
\footnotesize
\SetKwInOut{Input}{Input}
\SetKwInOut{Output}{Output}
\SetKwFunction{OCoClus}{OCoClus}
\Input{Input dataset D, Max number of co-clusters K \textit{\{optional\}}, Max object noise threshold $\epsilon_I$ \textit{\{optional\}}, Max attribute noise threshold $\epsilon_J$ \textit{\{optional\}}}
\Output{Set of disjoint and overlapped co-clusters $\Phi$}
\OCoClus{D,K,$\epsilon_I$,$\epsilon_J$}\;
$\prod \leftarrow \emptyset$\;
$D_{r} \leftarrow D$ \textit{\{residual matrix\}}
\end{algorithm}
\end{document}
It generates the following output:
I want that the second line (line number 2) starts with 1 and the first line (line number 1) is not numbered. I did not found a way to do this.