using System; using System.Collections.Generic; using System.Text; namespace BotSharp.Algorithm.Statistics { /// /// In probability theory and statistics, a probability distribution is a mathematical function /// that provides the probabilities of occurrence of different possible outcomes in an experiment. /// https://en.wikipedia.org/wiki/Probability_distribution /// public class Probability { /// /// one value of all samples /// public string Value { get; set; } /// /// the number of times that something happens within a particular period of time /// public int Freq { get; set; } /// /// how likely something is, sometimes calculated in a mathematical way /// public double Prob { get; set; } public override string ToString() { return $"{Value} {Freq} {Prob}"; } } }