Click or drag to resize

IResponseCurveT Interface

This interface represents a piecewise linear curve, with input-output pairs at the bends. Outputs can be any type for which continuous interpolation makes sense.

Namespace:  Gamelogic.Extensions.Algorithms
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public interface IResponseCurve<T>

Type Parameters

T
The number type of the input and output, usually float or double, but anything that can be interpolated (such as vectors and colors) is possible.

The IResponseCurveT type exposes the following members.

Properties
  NameDescription
Public propertyItem
If the input is below the inputMin given in the constructor, the output is clamped to the first output sample. If the input is above the inputMax given in the constructor, the output is clamped to the last output sample. Otherwise an index is calculated, and the output is interpolated between outputSample[index] and outputSample[index + 1].
Top
Methods
  NameDescription
Public methodEvaluate
Top
Extension Methods
Remarks

This class is is the base of the that described in AI Programming Wisdom 1, "The Beauty of Response Curves", by Bob Alexander.

The inputs need not be spread uniformly.

See Also