Class BaseNFeature

  • All Implemented Interfaces:
    org.jpmml.converter.HasDerivedName

    public class BaseNFeature
    extends org.jpmml.converter.BinaryThresholdFeature
    • Constructor Summary

      Constructors 
      Constructor Description
      BaseNFeature​(org.jpmml.converter.PMMLEncoder encoder, java.lang.String name, org.dmg.pmml.DataType dataType, int base, int index, com.google.common.collect.SetMultimap<java.lang.Integer,​?> values, java.lang.Object missingCategory, java.lang.Integer defaultValue)  
      BaseNFeature​(org.jpmml.converter.PMMLEncoder encoder, org.dmg.pmml.Field<?> field, int base, int index, com.google.common.collect.SetMultimap<java.lang.Integer,​?> values, java.lang.Object missingCategory, java.lang.Integer defaultValue)  
      BaseNFeature​(org.jpmml.converter.PMMLEncoder encoder, org.jpmml.converter.Feature feature, int base, int index, com.google.common.collect.SetMultimap<java.lang.Integer,​?> values, java.lang.Object missingCategory, java.lang.Integer defaultValue)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object object)  
      int getBase()  
      java.lang.Integer getDefaultValue()  
      java.lang.String getDerivedName()  
      int getIndex()  
      java.lang.Object getMissingCategory()  
      java.lang.Object getMissingValue()  
      com.google.common.collect.SetMultimap<java.lang.Integer,​?> getValues()  
      java.util.Set<?> getValues​(java.util.function.Predicate<java.lang.Number> predicate)  
      int hashCode()  
      org.jpmml.converter.ContinuousFeature toContinuousFeature()  
      • Methods inherited from class org.jpmml.converter.Feature

        getDataType, getEncoder, getField, getName, ref, toContinuousFeature, toString
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • BaseNFeature

        public BaseNFeature​(org.jpmml.converter.PMMLEncoder encoder,
                            org.dmg.pmml.Field<?> field,
                            int base,
                            int index,
                            com.google.common.collect.SetMultimap<java.lang.Integer,​?> values,
                            java.lang.Object missingCategory,
                            java.lang.Integer defaultValue)
      • BaseNFeature

        public BaseNFeature​(org.jpmml.converter.PMMLEncoder encoder,
                            org.jpmml.converter.Feature feature,
                            int base,
                            int index,
                            com.google.common.collect.SetMultimap<java.lang.Integer,​?> values,
                            java.lang.Object missingCategory,
                            java.lang.Integer defaultValue)
      • BaseNFeature

        public BaseNFeature​(org.jpmml.converter.PMMLEncoder encoder,
                            java.lang.String name,
                            org.dmg.pmml.DataType dataType,
                            int base,
                            int index,
                            com.google.common.collect.SetMultimap<java.lang.Integer,​?> values,
                            java.lang.Object missingCategory,
                            java.lang.Integer defaultValue)
    • Method Detail

      • getDerivedName

        public java.lang.String getDerivedName()
      • toContinuousFeature

        public org.jpmml.converter.ContinuousFeature toContinuousFeature()
        Specified by:
        toContinuousFeature in class org.jpmml.converter.Feature
      • getValues

        public java.util.Set<?> getValues​(java.util.function.Predicate<java.lang.Number> predicate)
        Specified by:
        getValues in class org.jpmml.converter.ThresholdFeature
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class org.jpmml.converter.Feature
      • equals

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class org.jpmml.converter.Feature
      • getBase

        public int getBase()
      • getIndex

        public int getIndex()
      • getValues

        public com.google.common.collect.SetMultimap<java.lang.Integer,​?> getValues()
      • getMissingValue

        public java.lang.Object getMissingValue()
        Specified by:
        getMissingValue in class org.jpmml.converter.ThresholdFeature
      • getMissingCategory

        public java.lang.Object getMissingCategory()
      • getDefaultValue

        public java.lang.Integer getDefaultValue()