/// <summary>
        /// Create a Profile object.  THis will keep track of the profile
        /// data based off the profile type given in the constructor.
        /// </summary>
        /// <param name="type">Profile Type.</param>
        /// <param name="beam">Beam Number.</param>
        /// <param name="maxBins">Number of bins to display.</param>
        /// <param name="color">Color of the profile line.</param>
        /// <param name="isFilterData">Flag for filtering the data for bad values.</param>
        /// <param name="list">Initial list of data to plot.</param>
        public ProfileSeries(ProfileType type, int beam, OxyColor color, bool isFilterData = true, int maxBins = MAX_BIN, List <DataSet.Ensemble> list = null)
        {
            // Initialize the values.
            Type    = type;
            Beam    = beam;
            MaxBins = maxBins;
            Color   = color;

            // Create a line series with the title as the type title
            this.Title = GetTitle(Beam);

            if (list != null)
            {
                // Update the line series with the list of ensembles
                UpdateLineSeries(list, maxBins, isFilterData);
            }
        }
Example #2
0
        /// <summary>
        /// Create a Profile object.  THis will keep track of the profile
        /// data based off the profile type given in the constructor.
        /// </summary>
        /// <param name="type">Profile Type.</param>
        /// <param name="beam">Beam Number.</param>
        /// <param name="maxBins">Number of bins to display.</param>
        /// <param name="color">Color of the profile line.</param>
        /// <param name="isFilterData">Flag for filtering the data for bad values.</param>
        /// <param name="list">Initial list of data to plot.</param>
        public MinMaxAvgStdSeries(ProfileType type, int beam, OxyColor color, bool isFilterData = true, int maxBins = MAX_BIN, List <DataSet.Ensemble> list = null)
        {
            // Initialize the values.
            Type    = type;
            Beam    = beam;
            MaxBins = maxBins;
            Color   = color;

            _minMaxAvgStdDict = new Dictionary <int, MinMaxAvgStdVals>();

            MinPoints = new ScatterSeriesWithToString("Min " + beam.ToString(), color, 2);

            MaxPoints            = new ScatterSeriesWithToString("Max " + beam.ToString(), color, 2);
            MaxPoints.MarkerType = MarkerType.Triangle;

            AvgPoints = new LineSeriesWithToString("Avg " + beam.ToString(), color);

            StdP2PPoints = new LineSeriesWithToString("Std P2P " + beam.ToString(), color);

            StdB2BPoints = new LineSeriesWithToString("Std B2B " + beam.ToString(), color);
        }