|
HelpersScaleFineTuneWeightT Method |
Scales all fine tune weight based on 1.
Namespace: JLChnToZ.LuckyPlayerAssembly: LuckyPlayer (in LuckyPlayer.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static bool ScaleFineTuneWeight<T>(
this WeightedCollection<T> collection
)
<ExtensionAttribute>
Public Shared Function ScaleFineTuneWeight(Of T) (
collection As WeightedCollection(Of T)
) As Boolean
public:
[ExtensionAttribute]
generic<typename T>
static bool ScaleFineTuneWeight(
WeightedCollection<T>^ collection
)
[<ExtensionAttribute>]
static member ScaleFineTuneWeight :
collection : WeightedCollection<'T> -> bool
Parameters
- collection
- Type: JLChnToZ.LuckyPlayer.WeightedRandomizerWeightedCollectionT
The collection have to scale the fine tune weight
Type Parameters
- T
Return Value
Type:
Booleantrue if success scaled, otherwise
false.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
WeightedCollectionT. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also