Ejemplo n.º 1
0
		/// <summary> Constructs a matrix using a given array.
		/// 
		/// </summary>
		/// <param name="array">the values of the matrix
		/// </param>
		public Matrix(double[][] array)
		{
			m_Matrix = new weka.core.matrix.Matrix(array);
		}
Ejemplo n.º 2
0
		/// <summary> Reads a matrix from a reader. The first line in the file should
		/// contain the number of rows and columns. Subsequent lines
		/// contain elements of the matrix.
		/// 
		/// </summary>
		/// <param name="r">the reader containing the matrix
		/// </param>
		/// <throws>  Exception if an error occurs </throws>
		//UPGRADE_ISSUE: Class hierarchy differences between 'java.io.Reader' and 'System.IO.StreamReader' may cause compilation errors. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1186'"
		public Matrix(System.IO.StreamReader r)
		{
			m_Matrix = new weka.core.matrix.Matrix(r);
		}
Ejemplo n.º 3
0
		/// <summary> Constructs a matrix and initializes it with default values.
		/// 
		/// </summary>
		/// <param name="nr">the number of rows
		/// </param>
		/// <param name="nc">the number of columns
		/// </param>
		public Matrix(int nr, int nc)
		{
			m_Matrix = new weka.core.matrix.Matrix(nr, nc);
		}