当前位置: 首页>>代码示例>>Java>>正文


Java StrictDecimalFormat类代码示例

本文整理汇总了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;
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:18,代码来源:SimpleExampleSource.java

示例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;
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:17,代码来源:SimpleExampleSource.java

示例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;
	}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:10,代码来源:NominalNumbers2Numerical.java

示例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;
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:14,代码来源:ArffExampleSource.java

示例5: getNumberFormat

import com.rapidminer.tools.StrictDecimalFormat; //导入依赖的package包/类
/**
 * @return the number format associated to the configuration
 */
NumberFormat getNumberFormat() {
	return new StrictDecimalFormat(getResultSetConfiguration().getDecimalCharacter());
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:7,代码来源:CSVDataSource.java

示例6: makeFormat

import com.rapidminer.tools.StrictDecimalFormat; //导入依赖的package包/类
private NumberFormat makeFormat() throws UndefinedParameterError {
	StrictDecimalFormat format = StrictDecimalFormat.getInstance(this);
	return format;
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:5,代码来源:NominalNumbers2Numerical.java

示例7: getNumberFormat

import com.rapidminer.tools.StrictDecimalFormat; //导入依赖的package包/类
@Override
protected NumberFormat getNumberFormat() throws OperatorException {
	return StrictDecimalFormat.getInstance(this, true);
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:5,代码来源:CSVExampleSource.java

示例8: getNumberFormat

import com.rapidminer.tools.StrictDecimalFormat; //导入依赖的package包/类
@Override
protected NumberFormat getNumberFormat() throws OperatorException {
    return StrictDecimalFormat.getInstance(this, true);
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:5,代码来源:XMLExampleSource.java

示例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()));
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:6,代码来源:ParseValueTypesWizardStep.java


注:本文中的com.rapidminer.tools.StrictDecimalFormat类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。