Example #1
0
        //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;
        }
Example #2
0
 //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;
 }
Example #3
0
        /// <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;
        }
Example #4
0
 /// <summary>
 /// Copy constructor
 /// </summary>
 /// <param name="source">Source instance</param>
 public MWAvgPredictorSettings(MWAvgPredictorSettings source)
 {
     Window  = source.Window;
     Weights = source.Weights;
     return;
 }