Package microsim.statistics.regression
Class MultiLogitRegression<T extends java.lang.Enum<T>>
- java.lang.Object
-
- microsim.statistics.regression.MultiLogitRegression<T>
-
- All Implemented Interfaces:
IMultipleChoiceRegression<T>
public class MultiLogitRegression<T extends java.lang.Enum<T>> extends java.lang.Object implements IMultipleChoiceRegression<T>
-
-
Constructor Summary
Constructors Constructor Description MultiLogitRegression(java.util.Map<T,MultiKeyCoefficientMap> maps)
MultiLogitRegression(java.util.Map<T,MultiKeyCoefficientMap> maps, java.util.Random random)
-
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>>
TeventType(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>>
doublegetLogitTransformOfScore(T event, IDoubleSource iDblSrc, java.lang.Class<E> Regressors)
-
-
-
Constructor Detail
-
MultiLogitRegression
public MultiLogitRegression(java.util.Map<T,MultiKeyCoefficientMap> maps)
-
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.lang.Object individual)
- Specified by:
eventType
in interfaceIMultipleChoiceRegression<T extends java.lang.Enum<T>>
-
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 interfaceIMultipleChoiceRegression<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)
-
-