peakml.util
Class DataTypes

java.lang.Object
  extended by peakml.util.DataTypes

public class DataTypes
extends java.lang.Object

Utility class, providing a standard interface for dealing with standard data types.


Constructor Summary
DataTypes()
           
 
Method Summary
static java.lang.String toString(double[] vector)
          Converts the contents of the double-vector to a string.
static java.lang.String toString(double[][] matrix)
          Converts the contents of the double-matrix to a string.
static java.lang.String toString(float[] vector)
          Converts the contents of the float-vector to a string.
static java.lang.String toString(float[][] matrix)
          Converts the contents of the float-matrix to a string.
static java.lang.String toString(int[] vector)
          Converts the contents of the integer-vector to a string.
static java.lang.String toString(int[][] matrix)
          Converts the contents of the integer-matrix to a string.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataTypes

public DataTypes()
Method Detail

toString

public static java.lang.String toString(double[][] matrix)
Converts the contents of the double-matrix to a string. The data is formatted to look nice (3 decimals) and readable.

Parameters:
matrix - The matrix to be converted.
Returns:
The string.

toString

public static java.lang.String toString(float[][] matrix)
Converts the contents of the float-matrix to a string. The data is formatted to look nice (3 decimals) and readable.

Parameters:
matrix - The matrix to be converted.
Returns:
The string.

toString

public static java.lang.String toString(int[][] matrix)
Converts the contents of the integer-matrix to a string. The data is formatted to look nice (3 decimals) and readable.

Parameters:
matrix - The matrix to be converted.
Returns:
The string.

toString

public static java.lang.String toString(double[] vector)
Converts the contents of the double-vector to a string. The data is formatted to look nice (3 decimals) and readable.

Parameters:
matrix - The vector to be converted.
Returns:
The string.

toString

public static java.lang.String toString(float[] vector)
Converts the contents of the float-vector to a string. The data is formatted to look nice (3 decimals) and readable.

Parameters:
matrix - The vector to be converted.
Returns:
The string.

toString

public static java.lang.String toString(int[] vector)
Converts the contents of the integer-vector to a string. The data is formatted to look nice and readable.

Parameters:
matrix - The vector to be converted.
Returns:
The string.