public void AddPoint(double x, double y, DistributionMetaData distributionMetaData)
        {
            int index = AddPoint(x, y);

            if (index >= 0)
            {
                _allDistributionMetaData[index] = distributionMetaData;
            }
            else
            {
                _allDistributionMetaData.Insert(~index, distributionMetaData);
            }
        }
Example #2
0
        public static DistributionMetaData From(IDistributedParameter distributedParameter)
        {
            var metaData = new DistributionMetaData
            {
                Mean         = distributedParameter.MeanParameter.Value,
                Distribution = distributedParameter.Formula.DistributionType()
            };

            if (distributedParameter.DeviationParameter != null)
            {
                metaData.Deviation = distributedParameter.DeviationParameter.Value;
            }

            return(metaData);
        }
 public void RemoveDistributionMetaData(DistributionMetaData distributionMetaData)
 {
     _allDistributionMetaData.Remove(distributionMetaData);
 }
 /// <summary>
 ///    Add one distribtuion meta data. (should be one per point)
 /// </summary>
 /// <param name="distributionMeta"> </param>
 public void AddDistributionMetaData(DistributionMetaData distributionMeta)
 {
     _allDistributionMetaData.Add(distributionMeta);
 }