Class FrequencyExtensions
Frequency Extensions
Inheritance
System.Object
FrequencyExtensions
Namespace: MESL.SqlRace.Domain.Infrastructure.DataPipeline
Assembly: MESL.SqlRace.Domain.dll
Syntax
public static class FrequencyExtensions : Object
Methods
ConvertTo(Frequency, FrequencyUnit)
Convert to different Frequency Unit
Declaration
public static Frequency ConvertTo(this Frequency self, FrequencyUnit unitTo)
Parameters
Type | Name | Description |
---|---|---|
Frequency | self | |
FrequencyUnit | unitTo |
Returns
Type | Description |
---|---|
Frequency |
NumberOfSamplesFor(Frequency, Double)
Number of Samples For 'Seconds' at this frequency
Declaration
public static double NumberOfSamplesFor(this Frequency self, double seconds)
Parameters
Type | Name | Description |
---|---|---|
Frequency | self | Frequency |
System.Double | seconds | duration in Seconds |
Returns
Type | Description |
---|---|
System.Double |
ToFrequency(Int64)
Convert Interval to Frequency
Declaration
public static Frequency ToFrequency(this long interval)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | interval |
Returns
Type | Description |
---|---|
Frequency |
ToInterval(Frequency)
Convert Frequency to interval in Ns
Declaration
public static long ToInterval(this Frequency self)
Parameters
Type | Name | Description |
---|---|---|
Frequency | self |
Returns
Type | Description |
---|---|
System.Int64 |