Example #1
0
 //Constructors
 /// <summary>
 /// Creates an initialized instance.
 /// </summary>
 /// <param name="figure">The statistical figure.</param>
 /// <param name="window">Specifies the data window size.</param>
 public PredictorActivationDiffStatFigureSettings(BasicStat.StatisticalFigure figure, int window = DefaultWindow)
 {
     Figure = figure;
     Window = window;
     Check();
     return;
 }
Example #2
0
 //Constructors
 /// <summary>
 /// Creates an initialized instance.
 /// </summary>
 /// <param name="inputFieldName">The name of the input field to be transformed.</param>
 /// <param name="windowSize">The recent history window size.</param>
 /// <param name="outputFigure">The output statistical figure.</param>
 public MWStatTransformerSettings(string inputFieldName, int windowSize, BasicStat.StatisticalFigure outputFigure)
 {
     InputFieldName = inputFieldName;
     WindowSize     = windowSize;
     OutputFigure   = outputFigure;
     Check();
     return;
 }
Example #3
0
        /// <summary>
        /// Creates an initialized instance.
        /// </summary>
        /// <param name="elem">A xml element containing the configuration data.</param>
        public MWStatTransformerSettings(XElement elem)
        {
            //Validation
            XElement settingsElem = Validate(elem, XsdTypeName);

            //Parsing
            InputFieldName = settingsElem.Attribute("fieldName").Value;
            WindowSize     = int.Parse(settingsElem.Attribute("window").Value, CultureInfo.InvariantCulture);
            OutputFigure   = (BasicStat.StatisticalFigure)Enum.Parse(typeof(BasicStat.StatisticalFigure), settingsElem.Attribute("output").Value, true);
            Check();
            return;
        }