Skip to main content
Namespace: Ans.DataProcessing.operators.math

Summary

Computes centroid of field1 and field2, using fieldOut = field1*(1.-fact)+field2*(fact). Only works by index. available inputs: fieldA (Field, FieldsContainer), fieldB (Field, FieldsContainer), factor (double) available outputs: field (Field)

Example

Class Information

Inputs

fieldA

field or fields container with only one field is expected Type: LinkableInput

fieldB

field or fields container with only one field is expected Type: LinkableInput

factor

Scalar Type: LinkableInput

Outputs

field

Field with centroid calculation: fieldA*(1-factor) + fieldB*factor Type: LinkableOutput

Constructors

Constructor

Constructor

Parameters:
  • fieldA (object)
  • fieldB (object)
  • factor (object)
  • config (OperatorConfig)

Constructor

Parameters:
  • config (OperatorConfig)

Methods

Properties

inputs

Type: InputSpec

outputs

Type: OutputSpec

defaultConfig

Type: Config