示例#1
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 LinearTransformer(List <string> availableFieldNames, LinearTransformerSettings settings)
 {
     _settings  = (LinearTransformerSettings)settings.DeepClone();
     _xFieldIdx = availableFieldNames.IndexOf(_settings.XInputFieldName);
     _yFieldIdx = availableFieldNames.IndexOf(_settings.YInputFieldName);
     return;
 }
示例#2
0
 /// <summary>
 /// The deep copy constructor.
 /// </summary>
 /// <param name="source">The source instance.</param>
 public LinearTransformerSettings(LinearTransformerSettings source)
     : this(source.XInputFieldName, source.YInputFieldName, source.A, source.B)
 {
     return;
 }