Click or drag to resize

DitherResponse Constructor (IResponseCurveSingle, Int32, Single, Single)

Dithers responses by adding noise before passing it to a step response. If the quality of the noise is 1, the noise is uniform noise. If the quality of the noise is 2, the noise is triangular noise. The higher the quality, the closer the noise follow a random distribution.

Namespace:  Gamelogic.Extensions.Algorithms
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public DitherResponse(
	IResponseCurve<float> quantizer,
	int quality,
	float noiseScale,
	float[] errorFactors
)

Parameters

quantizer
Type: Gamelogic.Extensions.AlgorithmsIResponseCurveSingle
A response curve that converts inputs to discrete outputs.
quality
Type: SystemInt32
The quality.
noiseScale
Type: SystemSingle
The noise scale.
errorFactors
Type: SystemSingle
See Also