Class ComputationBase<TIn>
Represents a computation that transforms a single input
Inheritance
ComputationBase<TIn>
Inherited Members
Namespace: NMF.Transformations
Assembly: NMF.Transformations.dll
Syntax
public abstract class ComputationBase<TIn> : Computation, IPersistor, ITraceEntry where TIn : class
Type Parameters
Name | Description |
---|---|
TIn | The type of the input |
Constructors
| Edit this page View SourceComputationBase(GeneralTransformationRule<TIn>, IComputationContext, TIn)
Creates a new computation within the given transformation context for the given input
Declaration
protected ComputationBase(GeneralTransformationRule<TIn> transformationRule, IComputationContext context, TIn input)
Parameters
Type | Name | Description |
---|---|---|
GeneralTransformationRule<TIn> | transformationRule | The transformation rule that was used to transform the input |
IComputationContext | context | The context of this transformation |
TIn | input | The input for this transformation |
Properties
| Edit this page View SourceInput
Gets the input argument for this computation
Declaration
public TIn Input { get; }
Property Value
Type | Description |
---|---|
TIn |
TransformationRule
Gets the transformation rule, which has been used to compute this computation
Declaration
public GeneralTransformationRule<TIn> TransformationRule { get; }
Property Value
Type | Description |
---|---|
GeneralTransformationRule<TIn> |
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 |