Class ExecutionContextExtensionsForBuiltInProcessors
Execution context extension methods for built-in processors.
Inheritance
Namespace: MESL.SqlRace.Domain.Functions
Assembly: MESL.SqlRace.Domain.dll
Syntax
public static class ExecutionContextExtensionsForBuiltInProcessors : Object
Methods
BiLinearInterpolate(IExecutionContext, Int32, String, Double, Double, Int64)
Calculates the bilinear interpolate value for the given parameter.
Declaration
public static double BiLinearInterpolate(this IExecutionContext executionContext, int processorSlot, string fileName, double inputX, double inputY, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | fileName | The interpolate file. |
System.Double | inputX | The x input. |
System.Double | inputY | The y input. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
BiLinearInterpolate(IExecutionContext, Int32, String, String, String, Int64)
Calculates the bilinear interpolate value for the given parameter.
Declaration
public static double BiLinearInterpolate(this IExecutionContext executionContext, int processorSlot, string fileName, string parameterXId, string parameterYId, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | fileName | The interpolate file. |
System.String | parameterXId | The parameter identifier. |
System.String | parameterYId | The parameter identifier. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
CumulativeLapMax(IExecutionContext, Int32, String, Int64)
Calculates the max value in the current and previous laps for the given parameter.
Declaration
public static double CumulativeLapMax(this IExecutionContext executionContext, int processorSlot, string parameterId, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | parameterId | The parameter identifier. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The max value in the lap. |
CumulativeLapMean(IExecutionContext, Int32, String, Int32, Int64)
Calculates the mean value for the given parameter in the current and previous laps. This overload is needed by FDL functions.
Declaration
public static double CumulativeLapMean(this IExecutionContext executionContext, int processorSlot, string parameterId, int weightStatistics, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | parameterId | The parameter identifier. |
System.Int32 | weightStatistics | The weight statistics flag; 0 for unweighted, 1 for weighted. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
CumulativeLapMean(IExecutionContext, Int32, String, Int64)
Calculates the weighted mean value for the given parameter in the current and previous laps. This overload is needed by FDL functions.
Declaration
public static double CumulativeLapMean(this IExecutionContext executionContext, int processorSlot, string parameterId, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | parameterId | The parameter identifier. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
CumulativeLapMin(IExecutionContext, Int32, String, Int64)
Calculates the min value in the current and previous laps for the given parameter.
Declaration
public static double CumulativeLapMin(this IExecutionContext executionContext, int processorSlot, string parameterId, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | parameterId | The parameter identifier. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
CumulativeLapStdDev(IExecutionContext, Int32, String, Int32, Int64)
Calculates the std dev value for the given parameter in the current and previous laps.
Declaration
public static double CumulativeLapStdDev(this IExecutionContext executionContext, int processorSlot, string parameterId, int weightStatistics, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | parameterId | The parameter identifier. |
System.Int32 | weightStatistics | The weight statistics flag; 0 for unweighted, 1 for weighted. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
CumulativeLapStdDev(IExecutionContext, Int32, String, Int64)
Calculates the weighted std dev value for the given parameter in the current and previous laps. This overload is needed by FDL functions.
Declaration
public static double CumulativeLapStdDev(this IExecutionContext executionContext, int processorSlot, string parameterId, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | parameterId | The parameter identifier. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
CurrentLapNumber(IExecutionContext, Int32, Int64)
Calculates the current lap number.
Declaration
public static double CurrentLapNumber(this IExecutionContext executionContext, int processorSlot, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
Derivative(IExecutionContext, Int32, Double, Int64)
Calculates and returns the derivative of the given parameter.
Declaration
public static double Derivative(this IExecutionContext executionContext, int processorSlot, double sampleValue, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The slot that this processor occupies. |
System.Double | sampleValue | The processor input value. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The derivative of the given parameter. |
Derivative(IExecutionContext, Int32, String, Int64)
Calculates and returns the derivative of the given parameter.
Declaration
public static double Derivative(this IExecutionContext executionContext, int processorSlot, string parameterId, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The slot that this processor occupies. |
System.String | parameterId | The parameter identifier. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The derivative of the given parameter. |
DigitalFilter1(IExecutionContext, Int32, Double, Double, Double, Double, Double, Int64)
Calculates the digital filter value for the given parameter.
Declaration
public static double DigitalFilter1(this IExecutionContext executionContext, int processorSlot, double sampleValue, double b1, double b2, double a1, double a2, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.Double | sampleValue | The processor input value. |
System.Double | b1 | The value. |
System.Double | b2 | The value. |
System.Double | a1 | The value. |
System.Double | a2 | The value. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
DigitalFilter1(IExecutionContext, Int32, String, Double, Double, Double, Double, Int64)
Calculates the digital filter value for the given parameter.
Declaration
public static double DigitalFilter1(this IExecutionContext executionContext, int processorSlot, string parameterId, double b1, double b2, double a1, double a2, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | parameterId | The parameter identifier. |
System.Double | b1 | The value. |
System.Double | b2 | The value. |
System.Double | a1 | The value. |
System.Double | a2 | The value. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
DigitalFilter2(IExecutionContext, Int32, Double, Double, Double, Double, Double, Double, Double, Int64)
Calculates the digital filter value for the given parameter.
Declaration
public static double DigitalFilter2(this IExecutionContext executionContext, int processorSlot, double sampleValue, double b1, double b2, double b3, double a1, double a2, double a3, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.Double | sampleValue | The processor input value. |
System.Double | b1 | The value. |
System.Double | b2 | The value. |
System.Double | b3 | The value. |
System.Double | a1 | The value. |
System.Double | a2 | The value. |
System.Double | a3 | The value. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
DigitalFilter2(IExecutionContext, Int32, String, Double, Double, Double, Double, Double, Double, Int64)
Calculates the digital filter value for the given parameter.
Declaration
public static double DigitalFilter2(this IExecutionContext executionContext, int processorSlot, string parameterId, double b1, double b2, double b3, double a1, double a2, double a3, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | parameterId | The parameter identifier. |
System.Double | b1 | The value. |
System.Double | b2 | The value. |
System.Double | b3 | The value. |
System.Double | a1 | The value. |
System.Double | a2 | The value. |
System.Double | a3 | The value. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
DigitalFilter3(IExecutionContext, Int32, Double, Double, Double, Double, Double, Double, Double, Double, Double, Int64)
Calculates the digital filter value for the given parameter.
Declaration
public static double DigitalFilter3(this IExecutionContext executionContext, int processorSlot, double sampleValue, double b1, double b2, double b3, double b4, double a1, double a2, double a3, double a4, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.Double | sampleValue | The processor input value. |
System.Double | b1 | The value. |
System.Double | b2 | The value. |
System.Double | b3 | The value. |
System.Double | b4 | The value. |
System.Double | a1 | The value. |
System.Double | a2 | The value. |
System.Double | a3 | The value. |
System.Double | a4 | The value. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
DigitalFilter3(IExecutionContext, Int32, String, Double, Double, Double, Double, Double, Double, Double, Double, Int64)
Calculates the digital filter value for the given parameter.
Declaration
public static double DigitalFilter3(this IExecutionContext executionContext, int processorSlot, string parameterId, double b1, double b2, double b3, double b4, double a1, double a2, double a3, double a4, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | parameterId | The parameter identifier. |
System.Double | b1 | The value. |
System.Double | b2 | The value. |
System.Double | b3 | The value. |
System.Double | b4 | The value. |
System.Double | a1 | The value. |
System.Double | a2 | The value. |
System.Double | a3 | The value. |
System.Double | a4 | The value. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
DistanceIntoLap(IExecutionContext, Int32, Int64)
Calculates distance in the current lap.
Declaration
public static double DistanceIntoLap(this IExecutionContext executionContext, int processorSlot, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The distance value of the lap. |
Filter(IExecutionContext, Int32, Double, Double, Int64)
Calculates the low pass filter value for the given parameter.
Declaration
public static double Filter(this IExecutionContext executionContext, int processorSlot, double sampleValue, double frequency, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.Double | sampleValue | The processor input value. |
System.Double | frequency | The frequency. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The given parameter passed through a low-pass filter. |
Filter(IExecutionContext, Int32, String, Double, Int64)
Calculates the low pass filter value for the given parameter.
Declaration
public static double Filter(this IExecutionContext executionContext, int processorSlot, string parameterId, double frequency, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | parameterId | The parameter identifier. |
System.Double | frequency | The frequency. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The given parameter passed through a low-pass filter. |
HighPassFilter(IExecutionContext, Int32, Double, Double, Int64)
Calculates the high pass filter value for the given parameter.
Declaration
public static double HighPassFilter(this IExecutionContext executionContext, int processorSlot, double sampleValue, double frequency, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.Double | sampleValue | The processor input value. |
System.Double | frequency | The frequency. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
HighPassFilter(IExecutionContext, Int32, String, Double, Int64)
Calculates the high pass filter value for the given parameter.
Declaration
public static double HighPassFilter(this IExecutionContext executionContext, int processorSlot, string parameterId, double frequency, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | parameterId | The parameter identifier. |
System.Double | frequency | The frequency. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
IndexBySample(IExecutionContext, Int32, String, Double, Int64)
Calculates the value for the given parameter id offset forwards or backwards by the given sample.
Declaration
public static double IndexBySample(this IExecutionContext executionContext, int processorSlot, string parameterId, double sample, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | parameterId | The parameter identifier. |
System.Double | sample | The sample. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
IndexByTime(IExecutionContext, Int32, String, Double, Int64)
Calculates the value for the given parameter id offset forwards or backwards by the given time.
Declaration
public static double IndexByTime(this IExecutionContext executionContext, int processorSlot, string parameterId, double offset, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | parameterId | The parameter identifier. |
System.Double | offset | The offset in seconds. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
Integral(IExecutionContext, Int32, Double, Int64)
Calculates the integral value for the given parameter.
Declaration
public static double Integral(this IExecutionContext executionContext, int processorSlot, double sampleValue, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.Double | sampleValue | The processor input value. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
Integral(IExecutionContext, Int32, String, Int64)
Calculates the integral value for the given parameter.
Declaration
public static double Integral(this IExecutionContext executionContext, int processorSlot, string parameterId, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | parameterId | The parameter identifier. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
IsInError(IExecutionContext, Int32, String, Int64)
Checks for Default status of parameter sample.
Declaration
public static double IsInError(this IExecutionContext executionContext, int processorSlot, string parameterId, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | parameterId | The parameter identifier. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | Returns 1 if in Error, else 0. |
LapBestFit(IExecutionContext, Int32, String, String, Int32, Int32, Int64)
Calculates the Lap Best Fit accross the values for current lap.
Declaration
public static double LapBestFit(this IExecutionContext executionContext, int processorSlot, string parameterXId, string parameterYId, int order, int coefficientIndex, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | parameterXId | The parameter identifier. |
System.String | parameterYId | The parameter identifier. |
System.Int32 | order | The order. |
System.Int32 | coefficientIndex | The coefficient index. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
LapMax(IExecutionContext, Int32, String, Int64)
Calculates the max value in the current lap for the given parameter.
Declaration
public static double LapMax(this IExecutionContext executionContext, int processorSlot, string parameterId, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | parameterId | The parameter identifier. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The max value in the lap. |
LapMean(IExecutionContext, Int32, String, Int32, Int64)
Calculates the lap mean value for the given parameter. This overload is needed by FDL functions.
Declaration
public static double LapMean(this IExecutionContext executionContext, int processorSlot, string parameterId, int weightStatistics, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | parameterId | The parameter identifier. |
System.Int32 | weightStatistics | The weight statistics flag; 0 for unweighted, 1 for weighted. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
LapMean(IExecutionContext, Int32, String, Int64)
Calculates the weighted lap mean value for the given parameter. This overload is needed by FDL functions.
Declaration
public static double LapMean(this IExecutionContext executionContext, int processorSlot, string parameterId, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | parameterId | The parameter identifier. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
LapMin(IExecutionContext, Int32, String, Int64)
Calculates the min value in the current lap for the given parameter.
Declaration
public static double LapMin(this IExecutionContext executionContext, int processorSlot, string parameterId, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | parameterId | The parameter identifier. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
LapStdDev(IExecutionContext, Int32, String, Int32, Int64)
Calculates the lap std dev value for the given parameter.
Declaration
public static double LapStdDev(this IExecutionContext executionContext, int processorSlot, string parameterId, int weightStatistics, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | parameterId | The parameter identifier. |
System.Int32 | weightStatistics | The weight statistics flag; 0 for unweighted, 1 for weighted. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
LapStdDev(IExecutionContext, Int32, String, Int64)
Calculates the weighted lap std dev value for the given parameter. This overload is needed by FDL functions.
Declaration
public static double LapStdDev(this IExecutionContext executionContext, int processorSlot, string parameterId, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | parameterId | The parameter identifier. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
LapTime(IExecutionContext, Int32, Double)
Calculates lap time in seconds.
Declaration
public static double LapTime(this IExecutionContext executionContext, int processorSlot, double lapNumber)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.Double | lapNumber |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
LapTime(IExecutionContext, Int32, Int32)
Calculates lap time in seconds.
Declaration
public static double LapTime(this IExecutionContext executionContext, int processorSlot, int lapNumber)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.Int32 | lapNumber |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
LinearInterpolate(IExecutionContext, Int32, String, Double, Int64)
Calculates the linear interpolate value for the given parameter.
Declaration
public static double LinearInterpolate(this IExecutionContext executionContext, int processorSlot, string fileName, double input, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | fileName | The interpolate file. |
System.Double | input | The input value. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
LinearInterpolate(IExecutionContext, Int32, String, String, Int64)
Calculates the linear interpolate value for the given parameter.
Declaration
public static double LinearInterpolate(this IExecutionContext executionContext, int processorSlot, string fileName, string parameterId, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | fileName | The interpolate file. |
System.String | parameterId | The parameter identifier. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
LinearRegressionOffset(IExecutionContext, Int32, String, String, Int64)
Calculates the Linear Regression Offset accross the values for current lap.
Declaration
public static double LinearRegressionOffset(this IExecutionContext executionContext, int processorSlot, string parameterXId, string parameterYId, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | parameterXId | The parameter identifier. |
System.String | parameterYId | The parameter identifier. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
LinearRegressionR2(IExecutionContext, Int32, String, String, Int64)
Calculates the Linear Regression R Squared accross the values for current lap.
Declaration
public static double LinearRegressionR2(this IExecutionContext executionContext, int processorSlot, string parameterXId, string parameterYId, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | parameterXId | The parameter identifier. |
System.String | parameterYId | The parameter identifier. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
LinearRegressionSlope(IExecutionContext, Int32, String, String, Int64)
Calculates the Linear Regression Slope accross the values for current lap.
Declaration
public static double LinearRegressionSlope(this IExecutionContext executionContext, int processorSlot, string parameterXId, string parameterYId, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | parameterXId | The parameter identifier. |
System.String | parameterYId | The parameter identifier. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
MedianFilter(IExecutionContext, Int32, String, Int32, Int64)
Calculates the median filter value for the given parameter.
Declaration
public static double MedianFilter(this IExecutionContext executionContext, int processorSlot, string parameterId, int windowSize, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | parameterId | The parameter identifier. |
System.Int32 | windowSize | The windowSize. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
MedianFilter17(IExecutionContext, Int32, String, Int64)
Calculates the median filter value for the given parameter.
Declaration
public static double MedianFilter17(this IExecutionContext executionContext, int processorSlot, string parameterId, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | parameterId | The parameter identifier. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
MedianFilter25(IExecutionContext, Int32, String, Int64)
Calculates the median filter value for the given parameter.
Declaration
public static double MedianFilter25(this IExecutionContext executionContext, int processorSlot, string parameterId, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | parameterId | The parameter identifier. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
MedianFilter9(IExecutionContext, Int32, String, Int64)
Calculates the median filter value for the given parameter.
Declaration
public static double MedianFilter9(this IExecutionContext executionContext, int processorSlot, string parameterId, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | parameterId | The parameter identifier. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
MovingAverage(IExecutionContext, Int32, String, Int32, Int64)
Calculates and returns the moving average of the given parameter.
Declaration
public static double MovingAverage(this IExecutionContext executionContext, int processorSlot, string parameterId, int windowSize, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | |
System.Int32 | processorSlot | |
System.String | parameterId | |
System.Int32 | windowSize | |
System.Int64 | timestamp |
Returns
Type | Description |
---|---|
System.Double | The moving average of the given parameter. |
PhaseCompFilter(IExecutionContext, Int32, String, Double)
Calculates the phase comp filter value for the given parameter.
Declaration
public static double PhaseCompFilter(this IExecutionContext executionContext, int processorSlot, string parameterId, double frequency)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | parameterId | The parameter identifier. |
System.Double | frequency | The frequency. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
SamplesMax(IExecutionContext, Int32, String, Int32, Int64)
Calculates the max value of a parameter. This processor calculates the max value of the given window.
Declaration
public static double SamplesMax(this IExecutionContext executionContext, int processorSlot, string parameterId, int windowSize, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | parameterId | The parameter identifier. |
System.Int32 | windowSize | The windowSize. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The max value in the samples. |
SamplesMin(IExecutionContext, Int32, String, Int32, Int64)
Calculates the min value of a parameter. This processor calculates the min value of the given window.
Declaration
public static double SamplesMin(this IExecutionContext executionContext, int processorSlot, string parameterId, int windowSize, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | parameterId | The parameter identifier. |
System.Int32 | windowSize | The windowSize. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The min value in the samples. |
SamplesPerSec(IExecutionContext, Int32, String)
Calculates the samples per second for the given parameter.
Declaration
public static double SamplesPerSec(this IExecutionContext executionContext, int processorSlot, string parameterId)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | parameterId | The parameter identifier. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
SessionMax(IExecutionContext, Int32, String, Int64)
Calculates the max value in the session for the given parameter.
Declaration
public static double SessionMax(this IExecutionContext executionContext, int processorSlot, string parameterId, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | parameterId | The parameter identifier. |
System.Int64 | timestamp | The timestamp for the point. This is not session end time!. |
Returns
Type | Description |
---|---|
System.Double | The max value in the lap. |
SessionMean(IExecutionContext, Int32, String, Int32, Int64)
Calculates the session mean value for the given parameter.
Declaration
public static double SessionMean(this IExecutionContext executionContext, int processorSlot, string parameterId, int weightStatistics, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | parameterId | The parameter identifier. |
System.Int32 | weightStatistics | The weight statistics flag; 0 for unweighted, 1 for weighted. |
System.Int64 | timestamp | The timestamp for the point. This is not session end time!. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
SessionMean(IExecutionContext, Int32, String, Int64)
Calculates the session mean value for the given parameter. This overload is needed by FDL functions.
Declaration
public static double SessionMean(this IExecutionContext executionContext, int processorSlot, string parameterId, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | parameterId | The parameter identifier. |
System.Int64 | timestamp | The timestamp for the point. This is not session end time!. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
SessionMin(IExecutionContext, Int32, String, Int64)
Calculates the max value in the session for the given parameter.
Declaration
public static double SessionMin(this IExecutionContext executionContext, int processorSlot, string parameterId, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | parameterId | The parameter identifier. |
System.Int64 | timestamp | The timestamp for the point. This is not session end time!. |
Returns
Type | Description |
---|---|
System.Double | The max value in the session. |
SessionStdDev(IExecutionContext, Int32, String, Int32, Int64)
Calculates the session std dev value for the given parameter.
Declaration
public static double SessionStdDev(this IExecutionContext executionContext, int processorSlot, string parameterId, int weightStatistics, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | parameterId | The parameter identifier. |
System.Int32 | weightStatistics | The weight statistics flag; 0 for unweighted, 1 for weighted. |
System.Int64 | timestamp | The timestamp for the point. This is not session end time!. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
SessionStdDev(IExecutionContext, Int32, String, Int64)
Calculates the session std dev value for the given parameter. This overload is needed by FDL functions.
Declaration
public static double SessionStdDev(this IExecutionContext executionContext, int processorSlot, string parameterId, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | parameterId | The parameter identifier. |
System.Int64 | timestamp | The timestamp for the point. This is not session end time!. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
SetEvent(IExecutionContext, Int32, String, String, String, Int32, Int32, Int64)
Set an event marker in the session.
Declaration
public static double SetEvent(this IExecutionContext executionContext, int processorSlot, string eventName, string description, string group, int type, int persistency, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | |
System.Int32 | processorSlot | |
System.String | eventName | |
System.String | description | |
System.String | group | |
System.Int32 | type | |
System.Int32 | persistency | If greater than Zero it will persist the event to session. |
System.Int64 | timestamp |
Returns
Type | Description |
---|---|
System.Double |
SetEvent(IExecutionContext, Int32, String, String, String, Int32, Int64)
Set an event marker in the session.
Declaration
public static double SetEvent(this IExecutionContext executionContext, int processorSlot, string eventName, string description, string group, int type, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | eventName | The event name. |
System.String | description | The event description. |
System.String | group | The event group. |
System.Int32 | type | The event priority type. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | 0 |
SetLap(IExecutionContext, Int32)
Sets a lap marker in the session.
Declaration
public static double SetLap(this IExecutionContext executionContext, int processorSlot)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
TimeIntoLap(IExecutionContext, Int64)
Calculates the max value in the session for the given parameter.
Declaration
public static double TimeIntoLap(this IExecutionContext executionContext, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The max value in the session. |
TimeIntoSession(IExecutionContext, Int64)
Returns the time into the current session.
Declaration
public static double TimeIntoSession(this IExecutionContext executionContext, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The time into the current session. |
TimeOfDay(IExecutionContext, Int32, Int64)
Calculates the max value in the session for the given parameter.
Declaration
public static double TimeOfDay(this IExecutionContext executionContext, int processorSlot, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The max value in the session. |
UwLapMean(IExecutionContext, Int32, String, Int64)
Calculates the unweighted lap mean value for the given parameter. This overload is needed by FDL functions.
Declaration
public static double UwLapMean(this IExecutionContext executionContext, int processorSlot, string parameterId, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | parameterId | The parameter identifier. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
UwLapStdDev(IExecutionContext, Int32, String, Int64)
Calculates the unweighted lap standard deviation value for the given parameter. This overload is needed by FDL functions.
Declaration
public static double UwLapStdDev(this IExecutionContext executionContext, int processorSlot, string parameterId, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | parameterId | The parameter identifier. |
System.Int64 | timestamp | The timestamp. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
UwSessionMean(IExecutionContext, Int32, String, Int64)
Calculates the unweighted session mean value for the given parameter.
Declaration
public static double UwSessionMean(this IExecutionContext executionContext, int processorSlot, string parameterId, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | parameterId | The parameter identifier. |
System.Int64 | timestamp | The timestamp for the point. This is not session end time!. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
UwSessionStdDev(IExecutionContext, Int32, String, Int64)
Calculates the unweighted session std dev value for the given parameter. This overload is needed by FDL functions.
Declaration
public static double UwSessionStdDev(this IExecutionContext executionContext, int processorSlot, string parameterId, long timestamp)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | parameterId | The parameter identifier. |
System.Int64 | timestamp | The timestamp for the point. This is not session end time!. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |
WriteToLog(IExecutionContext, Int32, String, String)
Saves the write to log value.
Declaration
public static double WriteToLog(this IExecutionContext executionContext, int processorSlot, string fileName, string logEntry)
Parameters
Type | Name | Description |
---|---|---|
IExecutionContext | executionContext | The execution context. |
System.Int32 | processorSlot | The processor slot. |
System.String | fileName | The log file. |
System.String | logEntry | The log entry. |
Returns
Type | Description |
---|---|
System.Double | The min value in the lap. |