C# Класс GSF.TimeSeries.Measurement

Наследование: IMeasurement
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Undefined Measurement

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
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.

Описание методов

AverageAngleValueFilter() публичный статический Метод

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.
Результат double

AverageValueFilter() публичный статический Метод

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.
Результат double

Clone() публичный статический Метод

Creates a copy of the specified measurement.
public static Clone ( IMeasurement measurementToClone ) : Measurement
measurementToClone IMeasurement Specified measurement to clone.
Результат Measurement

Clone() публичный статический Метод

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.
Результат Measurement

Clone() публичный статический Метод

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.
Результат Measurement

CompareTo() публичный Метод

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 .
Результат int

CompareTo() публичный Метод

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 .
Результат int

Equals() публичный Метод

Determines whether the specified ITimeSeriesValue is equal to the current Measurement.
public Equals ( ITimeSeriesValue other ) : bool
other ITimeSeriesValue The to compare with the current .
Результат bool

Equals() публичный Метод

Determines whether the specified Object is equal to the current Measurement.
public Equals ( object obj ) : bool
obj object The to compare with the current .
Результат bool

GetHashCode() публичный Метод

Serves as a hash function for the current Measurement.
Hash code based on value of measurement.
public GetHashCode ( ) : int
Результат int

MajorityValueFilter() публичный статический Метод

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.
Результат double

Measurement() публичный Метод

Constructs a new Measurement using default settings.
public Measurement ( ) : System
Результат System

ToString() публичный Метод

Returns a String that represents the current Measurement.
public ToString ( ) : string
Результат string

ToString() публичный статический Метод

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.
Результат string

operator() публичный статический Метод

Compares two Measurement values for equality.
public static operator ( ) : bool
Результат bool

Описание свойств

Undefined публичное статическое свойство

Represents an undefined measurement.
public static Measurement,GSF.TimeSeries Undefined
Результат Measurement