TwoSeriesResampling Constructor (ITwoSeriesTradeSignal, Int32, ResamplingType) |
Initializes a new instance of TwoSeriesResampling.
Namespace:
FinAnalysis.Transformations
Assembly:
FinAnalysis (in FinAnalysis.dll) Version: 2.1.13-cc97e13414b71fde928e8f3a546ac1daf26f295f
Syntax public TwoSeriesResampling(
ITwoSeriesTradeSignal nextChainLink,
int resamplingFactor,
ResamplingType type
)
Parameters
- nextChainLink
- Type: FinAnalysis.BaseITwoSeriesTradeSignal
Next chain link for transformation chain or two series indicator. - resamplingFactor
- Type: SystemInt32
Resampling factor. We compress data series in resamplingFactor times. - type
- Type: FinAnalysis.BaseResamplingType
Resampling Method. LastElement - mean that we use for calculation values equals to last value on resampling period, ArithmeticMean - mean that we use for calculation values equals to arithmetic mean of values on resampling period,
Exceptions Exception | Condition |
---|
ArgumentException | Thrown when you try to specify resampling factor smaller than one. |
See Also