C# Class GSF.TimeSeries.Measurement

Inheritance: IMeasurement
Afficher le fichier Open project: GridProtectionAlliance/gsf Class Usage Examples

Méthodes publiques

Свойство Type Description
Undefined Measurement

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
AverageAngleValueFilter ( IEnumerable source ) : double

Calculates an average of the specified sequence of IMeasurement phase angle values.

Phase angles wrap, so this algorithm takes the wrapping into account when calculating the average.

AverageValueFilter ( IEnumerable source ) : double

Calculates an average of the specified sequence of IMeasurement values.

Clone ( IMeasurement measurementToClone ) : Measurement

Creates a copy of the specified measurement.

Clone ( IMeasurement measurementToClone, Ticks timestamp ) : Measurement

Creates a copy of the specified measurement using a new timestamp.

Clone ( IMeasurement measurementToClone, double value, Ticks timestamp ) : Measurement

Creates a copy of the specified measurement using a new value and timestamp.

CompareTo ( ITimeSeriesValue other ) : int

Compares the Measurement with an ITimeSeriesValue.

Measurement implementations should compare by hash code.

CompareTo ( object obj ) : int

Compares the Measurement with the specified Object.

Measurement implementations should compare by hash code.

Equals ( ITimeSeriesValue other ) : bool

Determines whether the specified ITimeSeriesValue is equal to the current Measurement.

Equals ( object obj ) : bool

Determines whether the specified Object is equal to the current Measurement.

GetHashCode ( ) : int

Serves as a hash function for the current Measurement.

Hash code based on value of measurement.

MajorityValueFilter ( IEnumerable source ) : double

Returns the majority value of the specified sequence of IMeasurement values.

Measurement ( ) : System

Constructs a new Measurement using default settings.

ToString ( ) : string

Returns a String that represents the current Measurement.

ToString ( IMeasurement measurement, bool includeTagName = true ) : string

Returns a String that represents the specified IMeasurement.

operator ( ) : bool

Compares two Measurement values for equality.

Method Details

AverageAngleValueFilter() public static méthode

Calculates an average of the specified sequence of IMeasurement phase angle values.
Phase angles wrap, so this algorithm takes the wrapping into account when calculating the average.
public static AverageAngleValueFilter ( IEnumerable source ) : double
source IEnumerable Sequence of values over which to run calculation.
Résultat double

AverageValueFilter() public static méthode

Calculates an average of the specified sequence of IMeasurement values.
public static AverageValueFilter ( IEnumerable source ) : double
source IEnumerable Sequence of values over which to run calculation.
Résultat double

Clone() public static méthode

Creates a copy of the specified measurement.
public static Clone ( IMeasurement measurementToClone ) : Measurement
measurementToClone IMeasurement Specified measurement to clone.
Résultat Measurement

Clone() public static méthode

Creates a copy of the specified measurement using a new timestamp.
public static Clone ( IMeasurement measurementToClone, Ticks timestamp ) : Measurement
measurementToClone IMeasurement Specified measurement to clone.
timestamp Ticks New timestamp, in ticks, for cloned measurement.
Résultat Measurement

Clone() public static méthode

Creates a copy of the specified measurement using a new value and timestamp.
public static Clone ( IMeasurement measurementToClone, double value, Ticks timestamp ) : Measurement
measurementToClone IMeasurement Specified measurement to clone.
value double New value for cloned measurement.
timestamp Ticks New timestamp, in ticks, for cloned measurement.
Résultat Measurement

CompareTo() public méthode

Compares the Measurement with an ITimeSeriesValue.
Measurement implementations should compare by hash code.
public CompareTo ( ITimeSeriesValue other ) : int
other ITimeSeriesValue The to compare with the current .
Résultat int

CompareTo() public méthode

Compares the Measurement with the specified Object.
Measurement implementations should compare by hash code.
is not an .
public CompareTo ( object obj ) : int
obj object The to compare with the current .
Résultat int

Equals() public méthode

Determines whether the specified ITimeSeriesValue is equal to the current Measurement.
public Equals ( ITimeSeriesValue other ) : bool
other ITimeSeriesValue The to compare with the current .
Résultat bool

Equals() public méthode

Determines whether the specified Object is equal to the current Measurement.
public Equals ( object obj ) : bool
obj object The to compare with the current .
Résultat bool

GetHashCode() public méthode

Serves as a hash function for the current Measurement.
Hash code based on value of measurement.
public GetHashCode ( ) : int
Résultat int

MajorityValueFilter() public static méthode

Returns the majority value of the specified sequence of IMeasurement values.
public static MajorityValueFilter ( IEnumerable source ) : double
source IEnumerable Sequence of values over which to run calculation.
Résultat double

Measurement() public méthode

Constructs a new Measurement using default settings.
public Measurement ( ) : System
Résultat System

ToString() public méthode

Returns a String that represents the current Measurement.
public ToString ( ) : string
Résultat string

ToString() public static méthode

Returns a String that represents the specified IMeasurement.
public static ToString ( IMeasurement measurement, bool includeTagName = true ) : string
measurement IMeasurement to convert to a representation.
includeTagName bool Set to true to include measurement's tag name, if defined; otherwise set to false.
Résultat string

operator() public static méthode

Compares two Measurement values for equality.
public static operator ( ) : bool
Résultat bool

Property Details

Undefined public_oe static_oe property

Represents an undefined measurement.
public static Measurement,GSF.TimeSeries Undefined
Résultat Measurement