Class LogisticWeightFunction

    • Constructor Detail

      • LogisticWeightFunction

        public LogisticWeightFunction()
      • LogisticWeightFunction

        public LogisticWeightFunction​(double intercept,
                                      double[] coefficients)
    • Method Detail

      • serialize

        public void serialize​(java.io.OutputStream os)
                       throws java.io.IOException
        Specified by:
        serialize in interface SerializableWeightFunction
        Throws:
        java.io.IOException
      • deserialize

        public void deserialize​(java.io.InputStream is)
                         throws java.io.IOException
        Specified by:
        deserialize in interface SerializableWeightFunction
        Throws:
        java.io.IOException
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getCoefficients

        public double[] getCoefficients()
      • setCoefficients

        public void setCoefficients​(double[] coefficients)
      • getIntercept

        public double getIntercept()
      • setIntercept

        public void setIntercept​(double intercept)