//Constructor /// <summary> /// Creates an initialized instance /// </summary> /// <param name="availableFieldNames">Collection of names of all available input fields</param> /// <param name="settings">Configuration</param> public PowerTransformer(List <string> availableFieldNames, PowerTransformerSettings settings) { _settings = (PowerTransformerSettings)settings.DeepClone(); _fieldIdx = availableFieldNames.IndexOf(_settings.InputFieldName); return; }
/// <summary> /// Deep copy constructor /// </summary> /// <param name="source">Source instance</param> public PowerTransformerSettings(PowerTransformerSettings source) : this(source.InputFieldName, source.Exponent, source.KeepSign) { return; }