本文整理汇总了Java中com.rapidminer.example.UnknownStatistics类的典型用法代码示例。如果您正苦于以下问题:Java UnknownStatistics类的具体用法?Java UnknownStatistics怎么用?Java UnknownStatistics使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
UnknownStatistics类属于com.rapidminer.example包,在下文中一共展示了UnknownStatistics类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ViewAttribute
import com.rapidminer.example.UnknownStatistics; //导入依赖的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());
}
}
示例2: ViewAttribute
import com.rapidminer.example.UnknownStatistics; //导入依赖的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());
}
}
示例3: ViewAttribute
import com.rapidminer.example.UnknownStatistics; //导入依赖的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());
}
}
示例4: NumericalStatistics
import com.rapidminer.example.UnknownStatistics; //导入依赖的package包/类
/**
* Creates a simple attribute which is not part of a series and does not provide a unit string.
*/
/* pp */NumericalAttribute(String name, int valueType) {
super(name, valueType);
registerStatistics(new NumericalStatistics());
registerStatistics(new WeightedNumericalStatistics());
registerStatistics(new MinMaxStatistics());
registerStatistics(new UnknownStatistics());
}
示例5: XMLSerialization
import com.rapidminer.example.UnknownStatistics; //导入依赖的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);
}
}
示例6: NumericalStatistics
import com.rapidminer.example.UnknownStatistics; //导入依赖的package包/类
/**
* Creates a simple attribute which is not part of a series and does not provide a unit string.
*/
/* pp */ NumericalAttribute(String name, int valueType) {
super(name, valueType);
registerStatistics(new NumericalStatistics());
registerStatistics(new WeightedNumericalStatistics());
registerStatistics(new MinMaxStatistics());
registerStatistics(new UnknownStatistics());
}
示例7: XMLSerialization
import com.rapidminer.example.UnknownStatistics; //导入依赖的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);
}
}
示例8: registerStatistics
import com.rapidminer.example.UnknownStatistics; //导入依赖的package包/类
/**
* Creates a simple attribute which is not part of a series and does not
* provide a unit string.
*/
/* pp */ NumericalAttribute(String name, int valueType) {
super(name, valueType);
registerStatistics(new NumericalStatistics());
registerStatistics(new WeightedNumericalStatistics());
registerStatistics(new MinMaxStatistics());
registerStatistics(new UnknownStatistics());
}
示例9: XMLSerialization
import com.rapidminer.example.UnknownStatistics; //导入依赖的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);
}
}
示例10: NominalAttribute
import com.rapidminer.example.UnknownStatistics; //导入依赖的package包/类
protected NominalAttribute(String name, int valueType) {
super(name, valueType);
registerStatistics(new NominalStatistics());
registerStatistics(new UnknownStatistics());
}
示例11: DateAttribute
import com.rapidminer.example.UnknownStatistics; //导入依赖的package包/类
/**
* Creates a simple attribute which is not part of a series and does not provide a unit string.
*/
protected DateAttribute(String name, int valueType) {
super(name, valueType);
registerStatistics(new MinMaxStatistics());
registerStatistics(new UnknownStatistics());
}
示例12: DateAttribute
import com.rapidminer.example.UnknownStatistics; //导入依赖的package包/类
/**
* Creates a simple attribute which is not part of a series and does not
* provide a unit string.
*/
protected DateAttribute(String name, int valueType) {
super(name, valueType);
registerStatistics(new MinMaxStatistics());
registerStatistics(new UnknownStatistics());
}