TableDiscreteFunction

TableDiscreteFunction(int, int[])

Initializes a new instance of the TableDiscreteFunction class.

public TableDiscreteFunction(int offsetOfInputs, int[] tableOfOutputs)
Parameter Type Description
offsetOfInputs Int32 The offset of the table indeces relative to the input values.
tableOfOutputs Int32[] The table of output values.

Exceptions

exception condition
ArgumentNullException Thrown when tableOfOutputs is null.
ArgumentException Thrown when number of table elements is 0.

See Also


TableDiscreteFunction(int, params Step[])

Initializes a new instance of the TableDiscreteFunction class.

public TableDiscreteFunction(int firstStepLevel, params Step[] steps)
Parameter Type Description
firstStepLevel Int32 The level of the first step of the step function.
steps Step[] The next steps of the step function.

Exceptions

exception condition
ArgumentNullException Thrown when steps is null.
ArgumentException Thrown when limits of steps are not strictly increasing.

See Also