Class MultiLogitRegression<T extends java.lang.Enum<T>>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T eventType​(java.lang.Object individual)  
      T eventType​(java.util.Map<java.lang.String,​java.lang.Double> values)
      Warning - only use when MultiLogitRegression's maps field has values that are MultiKeyCoefficientMaps with only one key.
      <E extends java.lang.Enum<E>>
      T
      eventType​(IDoubleSource iDblSrc, java.lang.Class<E> Regressors, java.lang.Class<T> enumType)  
      double getLogitTransformOfScore​(T event, java.lang.Object individual)  
      double getLogitTransformOfScore​(T event, java.util.Map<java.lang.String,​java.lang.Double> values)
      Warning - only use when MultiLogitRegression's maps field has values that are MultiKeyCoefficientMaps with only one key.
      <E extends java.lang.Enum<E>>
      double
      getLogitTransformOfScore​(T event, IDoubleSource iDblSrc, java.lang.Class<E> Regressors)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MultiLogitRegression

        public MultiLogitRegression​(java.util.Map<T,​MultiKeyCoefficientMap> maps,
                                    java.util.Random random)
    • Method Detail

      • getLogitTransformOfScore

        public double getLogitTransformOfScore​(T event,
                                               java.util.Map<java.lang.String,​java.lang.Double> values)
        Warning - only use when MultiLogitRegression's maps field has values that are MultiKeyCoefficientMaps with only one key. This method only looks at the first key of the MultiKeyCoefficientMap field of LinearRegression, so any other keys that are used to distinguish a unique multiKey (i.e. if the first key occurs more than once) will be ignored! If the first key of the multiKey appears more than once, the method would return an incorrect value, so will throw an exception.
        Parameters:
        values -
        Returns:
      • getLogitTransformOfScore

        public double getLogitTransformOfScore​(T event,
                                               java.lang.Object individual)
      • eventType

        public T eventType​(java.util.Map<java.lang.String,​java.lang.Double> values)
        Warning - only use when MultiLogitRegression's maps field has values that are MultiKeyCoefficientMaps with only one key. This method only looks at the first key of the MultiKeyCoefficientMap field of LinearRegression, so any other keys that are used to distinguish a unique multiKey (i.e. if the first key occurs more than once) will be ignored! If the first key of the multiKey appears more than once, the method would return an incorrect value, so will throw an exception.
        Specified by:
        eventType in interface IMultipleChoiceRegression<T extends java.lang.Enum<T>>
        Parameters:
        values -
        Returns:
      • getLogitTransformOfScore

        public <E extends java.lang.Enum<E>> double getLogitTransformOfScore​(T event,
                                                                             IDoubleSource iDblSrc,
                                                                             java.lang.Class<E> Regressors)
      • eventType

        public <E extends java.lang.Enum<E>> T eventType​(IDoubleSource iDblSrc,
                                                         java.lang.Class<E> Regressors,
                                                         java.lang.Class<T> enumType)