Table of Contents

Struct AdaptedIndicator<TInner, TSample, TValue, TExternal>

Namespace
Virtufin.Core.Behavior
Assembly
Virtufin.Core.dll

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

TInner

The wrapped indicator's concrete type.

TSample

The wrapped indicator's sample type.

TValue

The wrapped indicator's value type.

TExternal

The 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

external TExternal

Returns

AdaptedIndicator<TInner, TSample, TValue, TExternal>

A new indicator instance reflecting sample.