StateSelectorMinMaxAllTResType, TStateStatesWithOptimumWeight Method

Select a state from a list of weighted states.

Definition

Namespace: Karamba.Elements.States.Selectors
Assembly: KarambaCommon (in KarambaCommon.dll) Version: 3.0.8.0+eb23a7103f0eca0b6d808121e15fec6899194e15
C#
protected List<int> StatesWithOptimumWeight(
	List<TState> states,
	List<double> weights,
	double tolerance = -1
)

Parameters

states  ListTState
List of states.
weights  ListDouble
List of weights for the states.
tolerance  Double  (Optional)
Tolerance for equality between two weights.

Return Value

ListInt32
List of indexes of states.

See Also