Class ComputationBase
Represents a computation that transforms arbitrary many inputs
Inherited Members
Namespace: NMF.Transformations
Assembly: NMF.Transformations.dll
Syntax
public abstract class ComputationBase : Computation, IPersistor, ITraceEntry
Constructors
| Edit this page View SourceComputationBase(GeneralTransformationRule, IComputationContext, object[])
Creates a new computation within the given transformation context for the given input
Declaration
protected ComputationBase(GeneralTransformationRule transformationRule, IComputationContext context, object[] inputs)
Parameters
Type | Name | Description |
---|---|---|
GeneralTransformationRule | transformationRule | The transformation rule that was used to transform the input |
IComputationContext | context | The context of this transformation |
object[] | inputs | The input for this transformation |
Properties
| Edit this page View SourceInput
Gets the inputs of this computation
Declaration
protected object[] Input { get; }
Property Value
Type | Description |
---|---|
object[] |
Methods
| Edit this page View SourceGetInput(int)
Gets the input argument for this computation with the given index
Declaration
public override object GetInput(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index of the input parameter |
Returns
Type | Description |
---|---|
object | The input parameter at the ith position |