本文整理汇总了Java中com.rapidminer.tools.StrictDecimalFormat类的典型用法代码示例。如果您正苦于以下问题:Java StrictDecimalFormat类的具体用法?Java StrictDecimalFormat怎么用?Java StrictDecimalFormat使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
StrictDecimalFormat类属于com.rapidminer.tools包,在下文中一共展示了StrictDecimalFormat类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createReader
import com.rapidminer.tools.StrictDecimalFormat; //导入依赖的package包/类
public CSVFileReader createReader(File file) throws UndefinedParameterError {
final LineParser parser = new LineParser();
parser.setTrimLine(getParameterAsBoolean(PARAMETER_TRIM_LINES));
parser.setSkipComments(getParameterAsBoolean(PARAMETER_SKIP_COMMENTS));
try {
parser.setSplitExpression(getParameterAsString(PARAMETER_COLUMN_SEPARATORS));
} catch (OperatorException e) {
throw new UndefinedParameterError(e.getMessage());
}
parser.setUseQuotes(getParameterAsBoolean(PARAMETER_USE_QUOTES));
parser.setQuoteCharacter(getParameterAsChar(PARAMETER_QUOTES_CHARACTER));
parser.setCommentCharacters(getParameterAsString(PARAMETER_COMMENT_CHARS));
final NumberFormat numberFormat = StrictDecimalFormat.getInstance(this);
final CSVFileReader reader = new CSVFileReader(file,
getParameterAsBoolean(PARAMETER_USE_FIRST_ROW_AS_ATTRIBUTE_NAMES), parser, numberFormat);
return reader;
}
示例2: createReader
import com.rapidminer.tools.StrictDecimalFormat; //导入依赖的package包/类
public CSVFileReader createReader(File file) throws UndefinedParameterError {
final LineParser parser = new LineParser();
parser.setTrimLine(getParameterAsBoolean(PARAMETER_TRIM_LINES));
parser.setSkipComments(getParameterAsBoolean(PARAMETER_SKIP_COMMENTS));
try {
parser.setSplitExpression(getParameterAsString(PARAMETER_COLUMN_SEPARATORS));
} catch (OperatorException e) {
throw new UndefinedParameterError(e.getMessage());
}
parser.setUseQuotes(getParameterAsBoolean(PARAMETER_USE_QUOTES));
parser.setQuoteCharacter(getParameterAsChar(PARAMETER_QUOTES_CHARACTER));
parser.setCommentCharacters(getParameterAsString(PARAMETER_COMMENT_CHARS));
final NumberFormat numberFormat = StrictDecimalFormat.getInstance(this);
final CSVFileReader reader = new CSVFileReader(file, getParameterAsBoolean(PARAMETER_USE_FIRST_ROW_AS_ATTRIBUTE_NAMES), parser, numberFormat);
return reader;
}
示例3: getParameterTypes
import com.rapidminer.tools.StrictDecimalFormat; //导入依赖的package包/类
@Override
public List<ParameterType> getParameterTypes() {
List<ParameterType> types = super.getParameterTypes();
types.addAll(StrictDecimalFormat.getParameterTypes(this));
// TODO: Replace old parameters by new ones
// types.add(new ParameterTypeChar(PARAMETER_DECIMAL_POINT_CHARACTER, "Character that is used as decimal point.", '.', false));
// types.add(new ParameterTypeChar(PARAMETER_GROUP_SEPARATOR, "Character that is used to separate groups (e.g. in 1.000.000 or 1,000,000).", false));
return types;
}
示例4: getParameterTypes
import com.rapidminer.tools.StrictDecimalFormat; //导入依赖的package包/类
@Override
public List<ParameterType> getParameterTypes() {
List<ParameterType> types = new LinkedList<ParameterType>();
types.add(FileInputPortHandler.makeFileParameterType(this, PARAMETER_DATA_FILE, "Name of the Arff file to read the data from.", "arff", new PortProvider() {
@Override
public Port getPort() {
return fileInputPort;
}
}));
types.addAll(super.getParameterTypes());
types.addAll(StrictDecimalFormat.getParameterTypes(this));
return types;
}
示例5: getNumberFormat
import com.rapidminer.tools.StrictDecimalFormat; //导入依赖的package包/类
/**
* @return the number format associated to the configuration
*/
NumberFormat getNumberFormat() {
return new StrictDecimalFormat(getResultSetConfiguration().getDecimalCharacter());
}
示例6: makeFormat
import com.rapidminer.tools.StrictDecimalFormat; //导入依赖的package包/类
private NumberFormat makeFormat() throws UndefinedParameterError {
StrictDecimalFormat format = StrictDecimalFormat.getInstance(this);
return format;
}
示例7: getNumberFormat
import com.rapidminer.tools.StrictDecimalFormat; //导入依赖的package包/类
@Override
protected NumberFormat getNumberFormat() throws OperatorException {
return StrictDecimalFormat.getInstance(this, true);
}
示例8: getNumberFormat
import com.rapidminer.tools.StrictDecimalFormat; //导入依赖的package包/类
@Override
protected NumberFormat getNumberFormat() throws OperatorException {
return StrictDecimalFormat.getInstance(this, true);
}
示例9: settingsChanged
import com.rapidminer.tools.StrictDecimalFormat; //导入依赖的package包/类
protected void settingsChanged() {
reader.setParameter(DateParser.PARAMETER_DATE_FORMAT, getDateFormat());
reader.setParameter(StrictDecimalFormat.PARAMETER_DECIMAL_CHARACTER, Character.toString(getDecimalPointCharacter()));
reader.setParameter(StrictDecimalFormat.PARAMETER_GROUPING_CHARACTER, Character.toString(getGroupingSeparator()));
}