Package microsim.statistics.regression
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 Summary
ConstructorDescriptionMultiProbitRegression
(@NonNull Map<T, MultiKeyCoefficientMap> maps) MultiProbitRegression
(@NonNull Map<T, MultiKeyCoefficientMap> maps, @NonNull Random random) -
Method Summary
Modifier and TypeMethodDescriptionWarning - only use when MultiProbitRegression's maps field has values that are MultiKeyCoefficientMaps with only one key.eventType
(DoubleSource iDblSrc, Class<E> Regressors, Class<T> enumType) double
getProbitTransformOfScore
(T event, @NonNull Object individual) double
getProbitTransformOfScore
(T event, @NonNull Map<String, Double> values) Warning - only use when MultiProbitRegression's maps field has values that are MultiKeyCoefficientMaps with only one key.<E extends Enum<E>>
doublegetProbitTransformOfScore
(T event, DoubleSource iDblSrc, @NonNull Class<E> Regressors)
-
Constructor Details
-
MultiProbitRegression
-
MultiProbitRegression
public MultiProbitRegression(@NonNull @NonNull Map<T, MultiKeyCoefficientMap> maps, @NonNull @NonNull Random random)
-
-
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
-
eventType
- Specified by:
eventType
in interfaceMultipleChoiceRegression<T extends Enum<T>>
-
eventType
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 interfaceMultipleChoiceRegression<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
-