//Constants //Attribute properties //Constructors /// <summary> /// Creates an initialized instance /// </summary> /// <param name="window">Window length</param> /// <param name="weights">Type of weighting</param> public ActivationMWAvgSettings(int window = DefaultWindow, PredictorsProvider.PredictorMWAvgWeightsType weights = DefaultWeights ) : base(window, weights) { return; }
//Constructors /// <summary> /// Creates an initialized instance /// </summary> /// <param name="window">Window length</param> /// <param name="weights">Type of weighting</param> public MWAvgPredictorSettings(int window = DefaultWindow, PredictorsProvider.PredictorMWAvgWeightsType weights = DefaultWeights ) { Window = window; Weights = weights; Check(); return; }
/// <summary> /// Creates initialized instance using xml element /// </summary> /// <param name="elem">Xml element containing settings</param> public MWAvgPredictorSettings(XElement elem) { //Validation XElement settingsElem = Validate(elem, XsdTypeName); //Parsing Window = int.Parse(settingsElem.Attribute("window").Value, CultureInfo.InvariantCulture); Weights = (PredictorsProvider.PredictorMWAvgWeightsType)Enum.Parse(typeof(PredictorsProvider.PredictorMWAvgWeightsType), settingsElem.Attribute("weights").Value, true); Check(); return; }
/// <summary> /// Copy constructor /// </summary> /// <param name="source">Source instance</param> public MWAvgPredictorSettings(MWAvgPredictorSettings source) { Window = source.Window; Weights = source.Weights; return; }