//Constructors /// <summary> /// Creates an initialized instance. /// </summary> /// <param name="name">The name of the generated field.</param> /// <param name="generatorCfg">The configuration of an associated generator.</param> /// <param name="routeToReadout">Specifies whether to route the generated field to the readout layer.</param> /// <param name="featureFilterCfg">The configuration of the real feature filter.</param> public GeneratedFieldSettings(string name, RCNetBaseSettings generatorCfg, bool routeToReadout = DefaultRouteToReadout, RealFeatureFilterSettings featureFilterCfg = null ) { Name = name; GeneratorCfg = generatorCfg.DeepClone(); RouteToReadout = routeToReadout; FeatureFilterCfg = featureFilterCfg == null ? null : (RealFeatureFilterSettings)featureFilterCfg.DeepClone(); Check(); return; }
//Constructors /// <summary> /// Creates an initialized instance /// </summary> /// <param name="name">Transformed field name</param> /// <param name="transformerCfg">Configuration of associated transformer</param> /// <param name="routeToReadout">Specifies whether to route transformed field to readout layer together with other predictors</param> /// <param name="featureFilterCfg">Configuration of real feature filter</param> /// <param name="spikingCodingCfg">Configuration of spiking coding neurons</param> public TransformedFieldSettings(string name, RCNetBaseSettings transformerCfg, bool routeToReadout = DefaultRouteToReadout, RealFeatureFilterSettings featureFilterCfg = null, SpikeCodeSettings spikingCodingCfg = null ) { Name = name; TransformerCfg = transformerCfg.DeepClone(); RouteToReadout = routeToReadout; FeatureFilterCfg = featureFilterCfg == null ? null : (RealFeatureFilterSettings)featureFilterCfg.DeepClone(); SpikingCodingCfg = spikingCodingCfg == null ? null : (SpikeCodeSettings)spikingCodingCfg.DeepClone(); Check(); return; }