Struct AdaptedIndicator<TInner, TSample, TValue, TExternal>
Result of Adapt<TSelf, TSample, TValue, TExternal>(IIndicator<TSelf, TSample, TValue>, Func<TExternal, TSample>).
Decodes each incoming TExternal into the wrapped
indicator's sample type before folding.
public readonly struct AdaptedIndicator<TInner, TSample, TValue, TExternal> : IIndicator<AdaptedIndicator<TInner, TSample, TValue, TExternal>, TExternal, TValue>, ISignal<TValue> where TInner : IIndicator<TInner, TSample, TValue>
Type Parameters
TInnerThe wrapped indicator's concrete type.
TSampleThe wrapped indicator's sample type.
TValueThe wrapped indicator's value type.
TExternalThe external type this indicator's Add(TExternal) accepts.
- Implements
-
IIndicator<AdaptedIndicator<TInner, TSample, TValue, TExternal>, TExternal, TValue>ISignal<TValue>
- Inherited Members
- Extension Methods
Properties
Value
The current signal value.
public TValue Value { get; }
Property Value
- TValue
Methods
Add(TExternal)
Fold one more sample in, returning the updated indicator.
public AdaptedIndicator<TInner, TSample, TValue, TExternal> Add(TExternal external)
Parameters
externalTExternal
Returns
- AdaptedIndicator<TInner, TSample, TValue, TExternal>
A new indicator instance reflecting
sample.