All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.dmg.pmml.OutlierTreatmentMethod Maven / Gradle / Ivy

There is a newer version: 1.6.6
Show newest version

package org.dmg.pmml;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
import com.fasterxml.jackson.annotation.JsonProperty;

@XmlType(name = "OUTLIER-TREATMENT-METHOD", namespace = "http://www.dmg.org/PMML-4_4")
@XmlEnum
public enum OutlierTreatmentMethod
    implements StringValue
{

    @XmlEnumValue("asIs")
    @JsonProperty("asIs")
    AS_IS("asIs"),
    @XmlEnumValue("asMissingValues")
    @JsonProperty("asMissingValues")
    AS_MISSING_VALUES("asMissingValues"),
    @XmlEnumValue("asExtremeValues")
    @JsonProperty("asExtremeValues")
    AS_EXTREME_VALUES("asExtremeValues");
    private final String value;

    OutlierTreatmentMethod(String v) {
        value = v;
    }

    @Override
    public String value() {
        return value;
    }

    public static OutlierTreatmentMethod fromValue(String v) {
        for (OutlierTreatmentMethod c: OutlierTreatmentMethod.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }

    @Override
    public String toString() {
        return value();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy