Click or drag to resize

analysisExtensionsGetRatio Method (IList, IList, Double, Double)

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Gets the ratio of Counts between two IList collections

Namespace:  imbSCI.Core.math
Assembly:  imbSCI.Core (in imbSCI.Core.dll) Version: 0.3.58.
Syntax
C#
public static double GetRatio(
	this IList part,
	IList whole,
	double ifPartIsZero = 0,
	double ifWholeIsZeroAndPartNot = 1
)
Request Example View Source

Parameters

part
Type: System.CollectionsIList
The part.
whole
Type: System.CollectionsIList
The whole.
ifPartIsZero (Optional)
Type: SystemDouble
If part is zero.
ifWholeIsZeroAndPartNot (Optional)
Type: SystemDouble
If whole is zero and part not.

Return Value

Type: Double

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IList. 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