 | DitherResponse Constructor (IResponseCurveSingle, IGeneratorSingle, Single) |
Constructs a new DitherResponse.
Namespace:
Gamelogic.Extensions.Algorithms
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntaxpublic DitherResponse(
IResponseCurve<float> quantizer,
IGenerator<float> noiseGenerator,
float[] errorFactors
)
Parameters
- quantizer
- Type: Gamelogic.Extensions.AlgorithmsIResponseCurveSingle
The response used to quantize values, such as an instance of StepResponse. - noiseGenerator
- Type: Gamelogic.Extensions.AlgorithmsIGeneratorSingle
A generator that provides noise. For satisfactory results, the
mean should be 0. - errorFactors
- Type: SystemSingle
An array of factors used to diffuse the error over several calls. For example,
if the error factors are [0.6, 0.3, 0.1], then 60% of the error is given added to the next sample,
30% to the sample after that, and 10% to the sample after that.
See Also