Click or drag to resize
Grid Solutions Framework

GrafanaFunctionBaseTExecuteFunction Method

Executes specified function against data source values enumeration using provided parameters.

Namespace: GrafanaAdapters.Functions
Assembly: GrafanaAdapters (in GrafanaAdapters.dll) Version: 2.4.218-beta
Syntax
protected virtual IAsyncEnumerable<T> ExecuteFunction(
	Func<double, double> function,
	Parameters parameters
)
View Source

Parameters

function  FuncDouble, Double
Function to execute.
parameters  Parameters
Input parameters.

Return Value

IAsyncEnumerableT
Deferred enumeration of computed values.
Remarks
This method uses the TransposeCompute(FuncDouble, Double) method to execute the specified function against each data source value in the provided enumeration operating on all the values in the target data source value type. For example, if the target data source value type is a phasor, this method will execute the function against both the magnitude and angle of each phasor value.
See Also