Exemple #1
0
 //Constructors
 /// <summary>
 /// Creates an initialized instance
 /// </summary>
 /// <param name="externalFieldsCfg">External input fields settings</param>
 /// <param name="transformedFieldsCfg">Transformed input fields settings</param>
 /// <param name="generatedFieldsCfg">Generated input fields settings</param>
 /// <param name="routeToReadout">Specifies whether to route input fields to readout layer together with other predictors</param>
 public VaryingFieldsSettings(ExternalFieldsSettings externalFieldsCfg,
                              TransformedFieldsSettings transformedFieldsCfg = null,
                              GeneratedFieldsSettings generatedFieldsCfg     = null,
                              bool routeToReadout = DefaultRouteToReadout
                              )
 {
     ExternalFieldsCfg    = (ExternalFieldsSettings)externalFieldsCfg.DeepClone();
     TransformedFieldsCfg = transformedFieldsCfg == null ? null : (TransformedFieldsSettings)transformedFieldsCfg.DeepClone();
     GeneratedFieldsCfg   = generatedFieldsCfg == null ? null : (GeneratedFieldsSettings)generatedFieldsCfg.DeepClone();
     RouteToReadout       = routeToReadout;
     Check();
     return;
 }
Exemple #2
0
 /// <summary>
 /// The deep copy constructor
 /// </summary>
 /// <param name="source">Source instance</param>
 public GeneratedFieldsSettings(GeneratedFieldsSettings source)
     : this()
 {
     AddFields(source.FieldCfgCollection);
     return;
 }