Click or drag to resize

NMathFunctionsIf(Int32, FuncDouble, Boolean) Method

Creates an array of boolean values determined by applying a logical function to the elements of an array.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static bool[] If(
	int[] data,
	Func<double, bool> function
)

Parameters

data  Int32
An array of integers.
function  FuncDouble, Boolean
A function that takes an integer and returns a boolean.

Return Value

Boolean
A boolean array.
Remarks
Integer values will be promoted to floating-point values for the calculation. The array will not be altered.
See Also