本文整理匯總了Java中com.rapidminer.tools.math.StringToMatrixConverter類的典型用法代碼示例。如果您正苦於以下問題:Java StringToMatrixConverter類的具體用法?Java StringToMatrixConverter怎麽用?Java StringToMatrixConverter使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
StringToMatrixConverter類屬於com.rapidminer.tools.math包,在下文中一共展示了StringToMatrixConverter類的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getParameterAsMatrix
import com.rapidminer.tools.math.StringToMatrixConverter; //導入依賴的package包/類
/** Returns a single named parameter and casts it to a double matrix. */
@Override
public double[][] getParameterAsMatrix(String key) throws UndefinedParameterError {
String matrixLine = getParameter(key);
try {
return StringToMatrixConverter.parseMatlabString(matrixLine);
} catch (OperatorException e) {
throw new UndefinedParameterError(e.getMessage(), this);
}
}
示例2: getParameterAsMatrix
import com.rapidminer.tools.math.StringToMatrixConverter; //導入依賴的package包/類
@Override
public double[][] getParameterAsMatrix(String key) throws UndefinedParameterError {
String matrixLine = getParameter(key);
try {
return StringToMatrixConverter.parseMatlabString(matrixLine);
} catch (OperatorException e) {
throw new UndefinedParameterError(e.getMessage());
}
}
示例3: getTableCellEditorComponent
import com.rapidminer.tools.math.StringToMatrixConverter; //導入依賴的package包/類
@Override
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int col) {
try {
this.matrix = StringToMatrixConverter.parseMatlabString((String) value);
} catch (Exception e) {
// TODO: do nothing?
}
setButtonText();
return button;
}
示例4: getParameterAsMatrix
import com.rapidminer.tools.math.StringToMatrixConverter; //導入依賴的package包/類
public double[][] getParameterAsMatrix(String key) throws UndefinedParameterError {
String matrixLine = getParameter(key);
try {
return StringToMatrixConverter.parseMatlabString(matrixLine);
} catch (OperatorException e) {
throw new UndefinedParameterError(e.getMessage());
}
}
示例5: getTableCellEditorComponent
import com.rapidminer.tools.math.StringToMatrixConverter; //導入依賴的package包/類
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int col) {
try {
this.matrix = StringToMatrixConverter.parseMatlabString((String)value);
} catch (Exception e) {
// TODO: do nothing?
}
setButtonText();
return button;
}
示例6: getCellEditorValue
import com.rapidminer.tools.math.StringToMatrixConverter; //導入依賴的package包/類
@Override
public Object getCellEditorValue() {
return StringToMatrixConverter.createMatlabString(matrix);
}
示例7: getCellEditorValue
import com.rapidminer.tools.math.StringToMatrixConverter; //導入依賴的package包/類
public Object getCellEditorValue() {
return StringToMatrixConverter.createMatlabString(matrix);
}