本文整理汇总了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);
}