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


Java NominalStatistics类代码示例

本文整理汇总了Java中com.rapidminer.example.NominalStatistics的典型用法代码示例。如果您正苦于以下问题:Java NominalStatistics类的具体用法?Java NominalStatistics怎么用?Java NominalStatistics使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


NominalStatistics类属于com.rapidminer.example包,在下文中一共展示了NominalStatistics类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: ViewAttribute

import com.rapidminer.example.NominalStatistics; //导入依赖的package包/类
public ViewAttribute(ViewModel model, Attribute parent, String name, int valueType, NominalMapping mapping) {
	super(name, valueType);
	this.model = model;
	this.mapping = mapping;
	this.isNominal = mapping != null && Ontology.ATTRIBUTE_VALUE_TYPE.isA(valueType, Ontology.NOMINAL);
	this.isNumerical = Ontology.ATTRIBUTE_VALUE_TYPE.isA(valueType, Ontology.NUMERICAL);
	this.isDateTime = Ontology.ATTRIBUTE_VALUE_TYPE.isA(valueType, Ontology.DATE_TIME)
			|| Ontology.ATTRIBUTE_VALUE_TYPE.isA(valueType, Ontology.DATE);

	this.parent = parent;
	if (isNominal) {
		registerStatistics(new NominalStatistics());
		registerStatistics(new UnknownStatistics());
	} else {
		registerStatistics(new NumericalStatistics());
		registerStatistics(new WeightedNumericalStatistics());
		registerStatistics(new MinMaxStatistics());
		registerStatistics(new UnknownStatistics());
	}
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:21,代码来源:ViewAttribute.java

示例2: ViewAttribute

import com.rapidminer.example.NominalStatistics; //导入依赖的package包/类
public ViewAttribute(ViewModel model, Attribute parent, String name, int valueType, NominalMapping mapping) {
	super(name, valueType);
	this.model = model;
	this.mapping = mapping;
	this.isNominal = mapping != null && Ontology.ATTRIBUTE_VALUE_TYPE.isA(valueType, Ontology.NOMINAL);
	this.isNumerical = Ontology.ATTRIBUTE_VALUE_TYPE.isA(valueType, Ontology.NUMERICAL);

	this.parent = parent;
	if (isNominal) {
		registerStatistics(new NominalStatistics());
		registerStatistics(new UnknownStatistics());
	} else {
		registerStatistics(new NumericalStatistics());
		registerStatistics(new WeightedNumericalStatistics());
		registerStatistics(new MinMaxStatistics());
		registerStatistics(new UnknownStatistics());
	}
}
 
开发者ID:rapidminer,项目名称:rapidminer-studio,代码行数:19,代码来源:ViewAttribute.java

示例3: ViewAttribute

import com.rapidminer.example.NominalStatistics; //导入依赖的package包/类
public ViewAttribute(ViewModel model, Attribute parent, String name, int valueType, NominalMapping mapping) {
	super(name, valueType);
	this.model = model;
	this.mapping = mapping;
	this.isNominal = mapping != null && Ontology.ATTRIBUTE_VALUE_TYPE.isA(valueType, Ontology.NOMINAL);
	this.isNumerical = Ontology.ATTRIBUTE_VALUE_TYPE.isA(valueType, Ontology.NUMERICAL);
	this.isDateTime = Ontology.ATTRIBUTE_VALUE_TYPE.isA(valueType, Ontology.DATE_TIME) || Ontology.ATTRIBUTE_VALUE_TYPE.isA(valueType, Ontology.DATE);
	
	this.parent = parent;
	if (isNominal) {
		registerStatistics(new NominalStatistics());
		registerStatistics(new UnknownStatistics());
	} else {
		registerStatistics(new NumericalStatistics());
		registerStatistics(new WeightedNumericalStatistics());
		registerStatistics(new MinMaxStatistics());
		registerStatistics(new UnknownStatistics());
	}
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:20,代码来源:ViewAttribute.java

示例4: XMLSerialization

import com.rapidminer.example.NominalStatistics; //导入依赖的package包/类
private XMLSerialization(ClassLoader classLoader) {
	try {
		Class<?> xStreamClass = Class.forName("com.thoughtworks.xstream.XStream");
		Class generalDriverClass = Class.forName("com.thoughtworks.xstream.io.HierarchicalStreamDriver");
		Constructor constructor = xStreamClass.getConstructor(new Class[] { generalDriverClass });
		Class driverClass = Class.forName("com.thoughtworks.xstream.io.xml.XppDriver");
		xStream = (com.thoughtworks.xstream.XStream) constructor.newInstance(driverClass.newInstance());
		xStream.setMode(com.thoughtworks.xstream.XStream.ID_REFERENCES);

		// define default aliases here
		addAlias("IOContainer", IOContainer.class);
		addAlias("PolynominalAttribute", PolynominalAttribute.class);
		addAlias("BinominalAttribute", BinominalAttribute.class);
		addAlias("NumericalAttribute", NumericalAttribute.class);

		addAlias("PolynominalMapping", PolynominalMapping.class);
		addAlias("BinominalMapping", BinominalMapping.class);

		addAlias("NumericalStatistics", NumericalStatistics.class);
		addAlias("WeightedNumericalStatistics", WeightedNumericalStatistics.class);
		addAlias("NominalStatistics", NominalStatistics.class);
		addAlias("UnknownStatistics", UnknownStatistics.class);

		addAlias("SimpleAttributes", SimpleAttributes.class);
		addAlias("AttributeRole", AttributeRole.class);

		xStream.setClassLoader(classLoader);

		defineXMLAliasPairs();
	} catch (Throwable e) {
		// TODO: Why are we catching Throwables?
		// LogService.getRoot().log(Level.WARNING,
		// "Cannot initialize XML serialization. Probably the libraries 'xstream.jar' and 'xpp.jar' were not provided. XML serialization will not work!",
		// e);
		LogService.getRoot().log(
				Level.WARNING,
				I18N.getMessage(LogService.getRoot().getResourceBundle(),
						"com.rapidminer.tools.XMLSerialization.writing_initializing_xml_serialization_error", e), e);
	}
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:41,代码来源:XMLSerialization.java

示例5: XMLSerialization

import com.rapidminer.example.NominalStatistics; //导入依赖的package包/类
private XMLSerialization(ClassLoader classLoader) {
	try {
		Class<?> xStreamClass = Class.forName("com.thoughtworks.xstream.XStream");
		Class<?> generalDriverClass = Class.forName("com.thoughtworks.xstream.io.HierarchicalStreamDriver");
		Constructor<?> constructor = xStreamClass.getConstructor(generalDriverClass);
		Class<?> driverClass = Class.forName("com.thoughtworks.xstream.io.xml.XppDriver");
		xStream = (com.thoughtworks.xstream.XStream) constructor.newInstance(driverClass.newInstance());
		xStream.setMode(com.thoughtworks.xstream.XStream.ID_REFERENCES);

		// define default aliases here
		addAlias("IOContainer", IOContainer.class);
		addAlias("PolynominalAttribute", PolynominalAttribute.class);
		addAlias("BinominalAttribute", BinominalAttribute.class);
		addAlias("NumericalAttribute", NumericalAttribute.class);

		addAlias("PolynominalMapping", PolynominalMapping.class);
		addAlias("BinominalMapping", BinominalMapping.class);

		addAlias("NumericalStatistics", NumericalStatistics.class);
		addAlias("WeightedNumericalStatistics", WeightedNumericalStatistics.class);
		addAlias("NominalStatistics", NominalStatistics.class);
		addAlias("UnknownStatistics", UnknownStatistics.class);

		addAlias("SimpleAttributes", SimpleAttributes.class);
		addAlias("AttributeRole", AttributeRole.class);

		xStream.setClassLoader(classLoader);

		defineXMLAliasPairs();
	} catch (Throwable e) {
		// TODO: Why are we catching Throwables?
		LogService.getRoot().log(Level.WARNING, I18N.getMessage(LogService.getRoot().getResourceBundle(),
						"com.rapidminer.tools.XMLSerialization.writing_initializing_xml_serialization_error", e), e);
	}
}
 
开发者ID:rapidminer,项目名称:rapidminer-studio,代码行数:36,代码来源:XMLSerialization.java

示例6: XMLSerialization

import com.rapidminer.example.NominalStatistics; //导入依赖的package包/类
private XMLSerialization(ClassLoader classLoader) {
    try {
        Class<?> xStreamClass = Class.forName("com.thoughtworks.xstream.XStream");
        Class generalDriverClass = Class.forName("com.thoughtworks.xstream.io.HierarchicalStreamDriver");
        Constructor constructor = xStreamClass.getConstructor(new Class[] { generalDriverClass });
        Class driverClass = Class.forName("com.thoughtworks.xstream.io.xml.XppDriver");
        xStream = (com.thoughtworks.xstream.XStream)constructor.newInstance(driverClass.newInstance());
        xStream.setMode(com.thoughtworks.xstream.XStream.ID_REFERENCES);

        // define default aliases here
        addAlias("IOContainer", IOContainer.class);
        addAlias("PolynominalAttribute", PolynominalAttribute.class);
        addAlias("BinominalAttribute", BinominalAttribute.class);
        addAlias("NumericalAttribute", NumericalAttribute.class);

        addAlias("PolynominalMapping", PolynominalMapping.class);
        addAlias("BinominalMapping", BinominalMapping.class);

        addAlias("NumericalStatistics", NumericalStatistics.class);
        addAlias("WeightedNumericalStatistics", WeightedNumericalStatistics.class);
        addAlias("NominalStatistics", NominalStatistics.class);
        addAlias("UnknownStatistics", UnknownStatistics.class);

        addAlias("SimpleAttributes", SimpleAttributes.class);
        addAlias("AttributeRole", AttributeRole.class);

        xStream.setClassLoader(classLoader);


        defineXMLAliasPairs();
    } catch (Throwable e) {
        // TODO: Why are we catching Throwables?
        //LogService.getRoot().log(Level.WARNING, "Cannot initialize XML serialization. Probably the libraries 'xstream.jar' and 'xpp.jar' were not provided. XML serialization will not work!", e);
    	LogService.getRoot().log(Level.WARNING,
    			I18N.getMessage(LogService.getRoot().getResourceBundle(),
    					"com.rapidminer.tools.XMLSerialization.writing_initializing_xml_serialization_error", 
    					e),
    					e);
    }
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:41,代码来源:XMLSerialization.java

示例7: NominalAttribute

import com.rapidminer.example.NominalStatistics; //导入依赖的package包/类
protected NominalAttribute(String name, int valueType) {
	super(name, valueType);
	registerStatistics(new NominalStatistics());
	registerStatistics(new UnknownStatistics());
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:6,代码来源:NominalAttribute.java


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