Class MultiProbitRegression<T extends Enum<T>>

java.lang.Object
microsim.statistics.regression.MultiProbitRegression<T>
All Implemented Interfaces:
MultipleChoiceRegression<T>

public class MultiProbitRegression<T extends Enum<T>> extends Object implements MultipleChoiceRegression<T>
  • Constructor Details

  • Method Details

    • getProbitTransformOfScore

      public double getProbitTransformOfScore(@NonNull T event, @NonNull @NonNull Map<String,Double> values)
      Warning - only use when MultiProbitRegression'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:
    • getProbitTransformOfScore

      public double getProbitTransformOfScore(@NonNull T event, @NonNull @NonNull Object individual)
    • eventType

      public T eventType(@NonNull @NonNull Object individual)
      Specified by:
      eventType in interface MultipleChoiceRegression<T extends Enum<T>>
    • eventType

      public T eventType(@NonNull @NonNull Map<String,Double> values)
      Warning - only use when MultiProbitRegression'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 MultipleChoiceRegression<T extends Enum<T>>
      Parameters:
      values -
      Returns:
    • getProbitTransformOfScore

      public <E extends Enum<E>> double getProbitTransformOfScore(@NonNull T event, DoubleSource iDblSrc, @NonNull @NonNull Class<E> Regressors)
    • eventType

      public <E extends Enum<E>> T eventType(DoubleSource iDblSrc, Class<E> Regressors, Class<T> enumType)