當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。