forked from SciSharp/BotSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProbability.cs
More file actions
34 lines (30 loc) · 1.01 KB
/
Probability.cs
File metadata and controls
34 lines (30 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using System;
using System.Collections.Generic;
using System.Text;
namespace BotSharp.Algorithm.Statistics
{
/// <summary>
/// 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
/// </summary>
public class Probability
{
/// <summary>
/// one value of all samples
/// </summary>
public string Value { get; set; }
/// <summary>
/// the number of times that something happens within a particular period of time
/// </summary>
public int Freq { get; set; }
/// <summary>
/// how likely something is, sometimes calculated in a mathematical way
/// </summary>
public double Prob { get; set; }
public override string ToString()
{
return $"{Value} {Freq} {Prob}";
}
}
}