org.dmg.pmml.ClusteringModelQuality Maven / Gradle / Ivy
package org.dmg.pmml;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
import javax.xml.bind.annotation.XmlType;
import com.sun.xml.bind.Locatable;
import com.sun.xml.bind.annotation.XmlLocation;
import org.jpmml.schema.Added;
import org.jpmml.schema.Version;
import org.xml.sax.Locator;
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attribute name="dataName" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="SSE" type="{http://www.dmg.org/PMML-4_2}NUMBER" />
* <attribute name="SSB" type="{http://www.dmg.org/PMML-4_2}NUMBER" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
@XmlRootElement(name = "ClusteringModelQuality")
@Added(Version.PMML_4_0)
public class ClusteringModelQuality
extends PMMLObject
implements Locatable
{
@XmlAttribute(name = "dataName")
protected String dataName;
@XmlAttribute(name = "SSE")
protected Double sse;
@XmlAttribute(name = "SSB")
protected Double ssb;
@XmlLocation
@XmlTransient
protected Locator locator;
/**
* Gets the value of the dataName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDataName() {
return dataName;
}
/**
* Sets the value of the dataName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDataName(String value) {
this.dataName = value;
}
/**
* Gets the value of the sse property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getSSE() {
return sse;
}
/**
* Sets the value of the sse property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setSSE(Double value) {
this.sse = value;
}
/**
* Gets the value of the ssb property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getSSB() {
return ssb;
}
/**
* Sets the value of the ssb property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setSSB(Double value) {
this.ssb = value;
}
public ClusteringModelQuality withDataName(String value) {
setDataName(value);
return this;
}
public ClusteringModelQuality withSSE(Double value) {
setSSE(value);
return this;
}
public ClusteringModelQuality withSSB(Double value) {
setSSB(value);
return this;
}
public Locator sourceLocation() {
return locator;
}
public void setSourceLocation(Locator newLocator) {
locator = newLocator;
}
@Override
public VisitorAction accept(Visitor visitor) {
VisitorAction status = visitor.visit(this);
if (status == VisitorAction.TERMINATE) {
return VisitorAction.TERMINATE;
}
return VisitorAction.CONTINUE;
}
}