Click or drag to resize

SimpleResampling Constructor (ISimpleTradeSignal, Int32, ResamplingType)

Initializes a new instance of SimpleResampling.

Namespace:  FinAnalysis.Transformations
Assembly:  FinAnalysis (in FinAnalysis.dll) Version: 2.1.13-cc97e13414b71fde928e8f3a546ac1daf26f295f
Syntax
C#
public SimpleResampling(
	ISimpleTradeSignal nextChainLink,
	int resamplingFactor,
	ResamplingType type
)

Parameters

nextChainLink
Type: FinAnalysis.BaseISimpleTradeSignal
Next chain link for transformation chain or simple 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
ExceptionCondition
ArgumentExceptionThrown when you try to specify resampling factor smaller than one.
See Also