示例#1
0
 //Constructor
 /// <summary>
 /// Creates an initialized instance.
 /// </summary>
 /// <param name="availableFieldNames">The collection of names of all available input fields.</param>
 /// <param name="cfg">The configuration.</param>
 public MulTransformer(List <string> availableFieldNames, MulTransformerSettings cfg)
 {
     _cfg       = (MulTransformerSettings)cfg.DeepClone();
     _xFieldIdx = availableFieldNames.IndexOf(_cfg.XInputFieldName);
     _yFieldIdx = availableFieldNames.IndexOf(_cfg.YInputFieldName);
     return;
 }
示例#2
0
 //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 MulTransformer(List <string> availableFieldNames, MulTransformerSettings settings)
 {
     _settings  = (MulTransformerSettings)settings.DeepClone();
     _xFieldIdx = availableFieldNames.IndexOf(_settings.XInputFieldName);
     _yFieldIdx = availableFieldNames.IndexOf(_settings.YInputFieldName);
     return;
 }
示例#3
0
 /// <summary>
 /// Deep copy constructor
 /// </summary>
 /// <param name="source">Source instance</param>
 public MulTransformerSettings(MulTransformerSettings source)
     : this(source.XInputFieldName, source.YInputFieldName)
 {
     return;
 }