
org.dmg.pmml.MultivariateStat Maven / Gradle / Ivy
package org.dmg.pmml;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import org.jpmml.schema.Added;
import org.jpmml.schema.Version;
/**
* 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">
* <sequence>
* <element ref="{http://www.dmg.org/PMML-4_3}Extension" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="category" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="exponent" type="{http://www.dmg.org/PMML-4_3}INT-NUMBER" default="1" />
* <attribute name="isIntercept" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
* <attribute name="importance" type="{http://www.dmg.org/PMML-4_3}PROB-NUMBER" />
* <attribute name="stdError" type="{http://www.dmg.org/PMML-4_3}NUMBER" />
* <attribute name="tValue" type="{http://www.dmg.org/PMML-4_3}NUMBER" />
* <attribute name="chiSquareValue" type="{http://www.dmg.org/PMML-4_3}NUMBER" />
* <attribute name="fStatistic" type="{http://www.dmg.org/PMML-4_3}NUMBER" />
* <attribute name="dF" type="{http://www.dmg.org/PMML-4_3}NUMBER" />
* <attribute name="pValueAlpha" type="{http://www.dmg.org/PMML-4_3}PROB-NUMBER" />
* <attribute name="pValueInitial" type="{http://www.dmg.org/PMML-4_3}PROB-NUMBER" />
* <attribute name="pValueFinal" type="{http://www.dmg.org/PMML-4_3}PROB-NUMBER" />
* <attribute name="confidenceLevel" type="{http://www.dmg.org/PMML-4_3}PROB-NUMBER" default="0.95" />
* <attribute name="confidenceLowerBound" type="{http://www.dmg.org/PMML-4_3}NUMBER" />
* <attribute name="confidenceUpperBound" type="{http://www.dmg.org/PMML-4_3}NUMBER" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"extensions"
})
@XmlRootElement(name = "MultivariateStat", namespace = "http://www.dmg.org/PMML-4_3")
@Added(Version.PMML_4_1)
public class MultivariateStat
extends org.dmg.pmml.PMMLObject
implements HasExtensions
{
@XmlAttribute(name = "name")
private String name;
@XmlAttribute(name = "category")
private String category;
@XmlAttribute(name = "exponent")
private Integer exponent;
@XmlAttribute(name = "isIntercept")
private Boolean intercept;
@XmlAttribute(name = "importance")
private Double importance;
@XmlAttribute(name = "stdError")
private Double stdError;
@XmlAttribute(name = "tValue")
private Double tValue;
@XmlAttribute(name = "chiSquareValue")
private Double chiSquareValue;
@XmlAttribute(name = "fStatistic")
private Double fStatistic;
@XmlAttribute(name = "dF")
private Double df;
@XmlAttribute(name = "pValueAlpha")
private Double pValueAlpha;
@XmlAttribute(name = "pValueInitial")
private Double pValueInitial;
@XmlAttribute(name = "pValueFinal")
private Double pValueFinal;
@XmlAttribute(name = "confidenceLevel")
private Double confidenceLevel;
@XmlAttribute(name = "confidenceLowerBound")
private Double confidenceLowerBound;
@XmlAttribute(name = "confidenceUpperBound")
private Double confidenceUpperBound;
@XmlElement(name = "Extension", namespace = "http://www.dmg.org/PMML-4_3")
private List extensions;
private final static Integer DEFAULT_EXPONENT = 1;
private final static Boolean DEFAULT_INTERCEPT = false;
private final static Double DEFAULT_CONFIDENCE_LEVEL = 0.95D;
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param name
* allowed object is
* {@link String }
*
*/
public MultivariateStat setName(String name) {
this.name = name;
return this;
}
/**
* Gets the value of the category property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCategory() {
return category;
}
/**
* Sets the value of the category property.
*
* @param category
* allowed object is
* {@link String }
*
*/
public MultivariateStat setCategory(String category) {
this.category = category;
return this;
}
/**
* Gets the value of the exponent property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getExponent() {
if (exponent == null) {
return DEFAULT_EXPONENT;
} else {
return exponent;
}
}
/**
* Sets the value of the exponent property.
*
* @param exponent
* allowed object is
* {@link Integer }
*
*/
public MultivariateStat setExponent(Integer exponent) {
this.exponent = exponent;
return this;
}
/**
* Gets the value of the intercept property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public boolean isIntercept() {
if (intercept == null) {
return DEFAULT_INTERCEPT;
} else {
return intercept;
}
}
/**
* Sets the value of the intercept property.
*
* @param intercept
* allowed object is
* {@link Boolean }
*
*/
public MultivariateStat setIntercept(Boolean intercept) {
this.intercept = intercept;
return this;
}
/**
* Gets the value of the importance property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getImportance() {
return importance;
}
/**
* Sets the value of the importance property.
*
* @param importance
* allowed object is
* {@link Double }
*
*/
public MultivariateStat setImportance(Double importance) {
this.importance = importance;
return this;
}
/**
* Gets the value of the stdError property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getStdError() {
return stdError;
}
/**
* Sets the value of the stdError property.
*
* @param stdError
* allowed object is
* {@link Double }
*
*/
public MultivariateStat setStdError(Double stdError) {
this.stdError = stdError;
return this;
}
/**
* Gets the value of the tValue property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getTValue() {
return tValue;
}
/**
* Sets the value of the tValue property.
*
* @param tValue
* allowed object is
* {@link Double }
*
*/
public MultivariateStat setTValue(Double tValue) {
this.tValue = tValue;
return this;
}
/**
* Gets the value of the chiSquareValue property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getChiSquareValue() {
return chiSquareValue;
}
/**
* Sets the value of the chiSquareValue property.
*
* @param chiSquareValue
* allowed object is
* {@link Double }
*
*/
public MultivariateStat setChiSquareValue(Double chiSquareValue) {
this.chiSquareValue = chiSquareValue;
return this;
}
/**
* Gets the value of the fStatistic property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getFStatistic() {
return fStatistic;
}
/**
* Sets the value of the fStatistic property.
*
* @param fStatistic
* allowed object is
* {@link Double }
*
*/
public MultivariateStat setFStatistic(Double fStatistic) {
this.fStatistic = fStatistic;
return this;
}
/**
* Gets the value of the df property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getDF() {
return df;
}
/**
* Sets the value of the df property.
*
* @param df
* allowed object is
* {@link Double }
*
*/
public MultivariateStat setDF(Double df) {
this.df = df;
return this;
}
/**
* Gets the value of the pValueAlpha property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getPValueAlpha() {
return pValueAlpha;
}
/**
* Sets the value of the pValueAlpha property.
*
* @param pValueAlpha
* allowed object is
* {@link Double }
*
*/
public MultivariateStat setPValueAlpha(Double pValueAlpha) {
this.pValueAlpha = pValueAlpha;
return this;
}
/**
* Gets the value of the pValueInitial property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getPValueInitial() {
return pValueInitial;
}
/**
* Sets the value of the pValueInitial property.
*
* @param pValueInitial
* allowed object is
* {@link Double }
*
*/
public MultivariateStat setPValueInitial(Double pValueInitial) {
this.pValueInitial = pValueInitial;
return this;
}
/**
* Gets the value of the pValueFinal property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getPValueFinal() {
return pValueFinal;
}
/**
* Sets the value of the pValueFinal property.
*
* @param pValueFinal
* allowed object is
* {@link Double }
*
*/
public MultivariateStat setPValueFinal(Double pValueFinal) {
this.pValueFinal = pValueFinal;
return this;
}
/**
* Gets the value of the confidenceLevel property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getConfidenceLevel() {
if (confidenceLevel == null) {
return DEFAULT_CONFIDENCE_LEVEL;
} else {
return confidenceLevel;
}
}
/**
* Sets the value of the confidenceLevel property.
*
* @param confidenceLevel
* allowed object is
* {@link Double }
*
*/
public MultivariateStat setConfidenceLevel(Double confidenceLevel) {
this.confidenceLevel = confidenceLevel;
return this;
}
/**
* Gets the value of the confidenceLowerBound property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getConfidenceLowerBound() {
return confidenceLowerBound;
}
/**
* Sets the value of the confidenceLowerBound property.
*
* @param confidenceLowerBound
* allowed object is
* {@link Double }
*
*/
public MultivariateStat setConfidenceLowerBound(Double confidenceLowerBound) {
this.confidenceLowerBound = confidenceLowerBound;
return this;
}
/**
* Gets the value of the confidenceUpperBound property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getConfidenceUpperBound() {
return confidenceUpperBound;
}
/**
* Sets the value of the confidenceUpperBound property.
*
* @param confidenceUpperBound
* allowed object is
* {@link Double }
*
*/
public MultivariateStat setConfidenceUpperBound(Double confidenceUpperBound) {
this.confidenceUpperBound = confidenceUpperBound;
return this;
}
/**
* Gets the value of the extensions property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the extensions property.
*
*
* For example, to add a new item, do as follows:
*
* getExtensions().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Extension }
*
*
*/
public List getExtensions() {
if (extensions == null) {
extensions = new ArrayList();
}
return this.extensions;
}
public boolean hasExtensions() {
return ((this.extensions!= null)&&(this.extensions.size()> 0));
}
public MultivariateStat addExtensions(Extension... extensions) {
getExtensions().addAll(Arrays.asList(extensions));
return this;
}
@Override
public VisitorAction accept(Visitor visitor) {
VisitorAction status = visitor.visit(this);
if (status == VisitorAction.CONTINUE) {
visitor.pushParent(this);
if ((status == VisitorAction.CONTINUE)&&hasExtensions()) {
status = org.dmg.pmml.PMMLObject.traverse(visitor, getExtensions());
}
visitor.popParent();
}
if (status == VisitorAction.TERMINATE) {
return VisitorAction.TERMINATE;
}
return VisitorAction.CONTINUE;
}
}