FunctionLibrary Class
Developer reference documentation for the gSharp Analytics Function Library and gSharp PI ACE Compatability Library.
Implements various shared (static) functions which can be used from gSharp calculations.
Definition
Namespace: GHost.GSharp.Analytics.AF
Assembly: GHost.GSharp.Analytics.AF (in GHost.GSharp.Analytics.AF.dll) Version: 1.2.0.0 (1.2.44.3)
C#
public static class FunctionLibrary
VB
Public NotInheritable Class FunctionLibrary
F#
[<AbstractClassAttribute>]
[<SealedAttribute>]
type FunctionLibrary = class end
| Inheritance | Object → FunctionLibrary |
Remarks
When using the shared functions, users can either specify the full paths (e.g., GHost.GSharp.Analytics.AF.Trunc()) or use the using keyword to import a namespace (e.g., using GHost.GSharp.Analytics.AF) and specify the names (e.g., Trunc()).
Methods
| Avg | Returns the average of all the arguments. |
| BadVal | Returns a boolean flag to indicate if a value is Bad. For numeric tag Attributes any digital state value is considered bad. For digital tag Attributes, any System digital state value is considered bad. |
| Curve | Returns the y value of a curve given the x value. |
| GetAFElementFromPath(String) | Returns the AFElement for a given path. |
| GetAFElementFromPath(String, AFElement) | Returns the AFElement for a given path relative to a secified AFElement object. |
| HasChanged(AFAttribute, Object) | Returns True if the AFAttribute received any updates in the specified time period, regardless of whether the update changed the actual value. |
| HasChanged(AFDataPoint, Object) | Returns True if the AFDataPoint received any updates in the specified time period, regardless of whether the update changed the actual value. |
| Max | Determines the maximum from the specified arguments. |
| Median | Returns the median (middle) value of all arguments. |
| Min | Determines the minimum from the specified arguments. |
| ParseTime(String) | Returns an AFTime object for a given time evaluated with respect to the current time. |
| ParseTime(String, String) | Returns an AFTime object for a given time evaluated with respect to a specified reference time. |
| Poly | Evaluates a polynomial with given coefficients at a specified point. |
| PStDev | Determines the population standard deviation of two or more numbers. |
| SStDev | Determines the sample standard deviation of two or more numbers. |
| Total | Determines the sum of all specified arguments. |
| Trunc(Object) | Truncates the specified numeric or timestamp to the next lower integer or second, respectively. |
| Trunc(Object, Object) | Truncates the specified numeric or timestamp to the next lower unit. |
Fields
| EpochTime | |
| EpochTimeMax |