StateSelectorMinMaxAllTResType, TStateStatesWithOptimumWeight Method
Select a state from a list of weighted states.
Namespace: Karamba.Elements.States.SelectorsAssembly: KarambaCommon (in KarambaCommon.dll) Version: 3.0.8.0+eb23a7103f0eca0b6d808121e15fec6899194e15
protected List<int> StatesWithOptimumWeight(
List<TState> states,
List<double> weights,
double tolerance = -1
)
Protected Function StatesWithOptimumWeight (
states As List(Of TState),
weights As List(Of Double),
Optional tolerance As Double = -1
) As List(Of Integer)
protected:
List<int>^ StatesWithOptimumWeight(
List<TState>^ states,
List<double>^ weights,
double tolerance = -1
)
member StatesWithOptimumWeight :
states : List<'TState> *
weights : List<float> *
?tolerance : float
(* Defaults:
let _tolerance = defaultArg tolerance -1
*)
-> List<int>
- states ListTState
- List of states.
- weights ListDouble
- List of weights for the states.
- tolerance Double (Optional)
- Tolerance for equality between two weights.
ListInt32List of indexes of states.