|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.math.PersistentObject
org.apache.mahout.math.matrix.impl.AbstractFormatter
org.apache.mahout.math.matrix.doublealgo.Formatter
@Deprecated public class Formatter
Field Summary |
---|
Fields inherited from class org.apache.mahout.math.matrix.impl.AbstractFormatter |
---|
alignment, CENTER, DECIMAL, format, LEFT, printShape, RIGHT, rowSeparator, sliceSeparator |
Constructor Summary | |
---|---|
Formatter()
Deprecated. Constructs and returns a matrix formatter with format "%G". |
|
Formatter(java.lang.String format)
Deprecated. Constructs and returns a matrix formatter. |
Method Summary | |
---|---|
protected java.lang.String |
form(AbstractMatrix1D matrix,
int index,
Former formatter)
Deprecated. Converts a given cell to a String; no alignment considered. |
protected static java.lang.String |
form(DoubleMatrix1D matrix,
int index,
Former formatter)
Deprecated. Converts a given cell to a String; no alignment considered. |
protected java.lang.String[][] |
format(AbstractMatrix2D matrix)
Deprecated. Returns a string representations of all cells; no alignment considered. |
java.lang.String[][] |
format(DoubleMatrix2D matrix)
Deprecated. Returns a string representations of all cells; no alignment considered. |
protected static int |
indexOfDecimalPoint(java.lang.String s)
Deprecated. Returns the index of the decimal point. |
protected int |
lead(java.lang.String s)
Deprecated. Returns the number of characters before the decimal point. |
java.lang.String |
toSourceCode(DoubleMatrix1D matrix)
Deprecated. Returns a string s such that Object[] m = s is a legal Java statement. |
java.lang.String |
toSourceCode(DoubleMatrix2D matrix)
Deprecated. Returns a string s such that Object[] m = s is a legal Java statement. |
java.lang.String |
toSourceCode(DoubleMatrix3D matrix)
Deprecated. Returns a string s such that Object[] m = s is a legal Java statement. |
protected java.lang.String |
toString(AbstractMatrix2D matrix)
Deprecated. Returns a string representation of the given matrix. |
java.lang.String |
toString(DoubleMatrix1D matrix)
Deprecated. Returns a string representation of the given matrix. |
java.lang.String |
toString(DoubleMatrix2D matrix)
Deprecated. Returns a string representation of the given matrix. |
java.lang.String |
toString(DoubleMatrix3D matrix)
Deprecated. Returns a string representation of the given matrix. |
Methods inherited from class org.apache.mahout.math.matrix.impl.AbstractFormatter |
---|
align, alignmentCode, alignRow, blanks, formatRow, repeat, setAlignment, setColumnSeparator, setFormat, setMinColumnWidth, setPrintShape, setRowSeparator, setSliceSeparator, shape, shape, shape, toString |
Methods inherited from class org.apache.mahout.math.PersistentObject |
---|
clone |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Formatter()
public Formatter(java.lang.String format)
format
- the given format used to convert a single cell value.Method Detail |
---|
protected static java.lang.String form(DoubleMatrix1D matrix, int index, Former formatter)
protected java.lang.String form(AbstractMatrix1D matrix, int index, Former formatter)
form
in class AbstractFormatter
public java.lang.String[][] format(DoubleMatrix2D matrix)
protected java.lang.String[][] format(AbstractMatrix2D matrix)
format
in class AbstractFormatter
protected static int indexOfDecimalPoint(java.lang.String s)
protected int lead(java.lang.String s)
lead
in class AbstractFormatter
public java.lang.String toSourceCode(DoubleMatrix1D matrix)
matrix
- the matrix to format.public java.lang.String toSourceCode(DoubleMatrix2D matrix)
matrix
- the matrix to format.public java.lang.String toSourceCode(DoubleMatrix3D matrix)
matrix
- the matrix to format.public java.lang.String toString(DoubleMatrix1D matrix)
matrix
- the matrix to convert.public java.lang.String toString(DoubleMatrix2D matrix)
matrix
- the matrix to convert.public java.lang.String toString(DoubleMatrix3D matrix)
matrix
- the matrix to convert.protected java.lang.String toString(AbstractMatrix2D matrix)
toString
in class AbstractFormatter
matrix
- the matrix to convert.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |