Class WeightedQuantileRanks
java.lang.Object
simpaths.data.WeightedQuantileRanks
Assigns observations to categories using cut points from a weighted empirical
distribution. Equal values are always assigned to the same category.
-
Method Summary
Modifier and TypeMethodDescriptionassign(Collection<T> observations, ToDoubleFunction<T> valueFunction, ToDoubleFunction<T> weightFunction, int numberOfGroups)
-
Method Details
-
assign
public static <T> Map<T,Integer> assign(Collection<T> observations, ToDoubleFunction<T> valueFunction, ToDoubleFunction<T> weightFunction, int numberOfGroups)
-