Table of Contents

Method InterpolateDither

Namespace
Gamelogic.Extensions.Algorithms
Assembly
Gamelogic.Extensions.dll

InterpolateDither<TSource>(IGenerator<TSource>, IGenerator<int>)

Interpolates a sequence, but applies dithering.

public static IGenerator<TSource> InterpolateDither<TSource>(this IGenerator<TSource> generator, IGenerator<int> sampleCount)

Parameters

generator IGenerator<TSource>
sampleCount IGenerator<int>

Returns

IGenerator<TSource>

Type Parameters

TSource

Remarks

For example, if the sequence is a binary sequence 1 0 1..., the result is a dithered sequence, something like 1 1 1 1 0 1 1 0 1 0 1 0 0 1 0 0 0 0