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