Skip to main content

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
InheritanceObject → 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​

AvgReturns the average of all the arguments.
BadValReturns 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.

CurveReturns 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.
MaxDetermines the maximum from the specified arguments.
MedianReturns the median (middle) value of all arguments.
MinDetermines 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.
PolyEvaluates a polynomial with given coefficients at a specified point.
PStDevDetermines the population standard deviation of two or more numbers.
SStDevDetermines the sample standard deviation of two or more numbers.
TotalDetermines 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 

See Also​

Reference​

GHost.GSharp.Analytics.AF Namespace