using System;
namespace BotSharp.Algorithm.Bayesian
{
///
/// Struct TokenCount
///
public struct TokenCount
{
///
/// The token
///
public readonly IToken Token;
///
/// The number of occurrences
///
public readonly long Count;
///
/// Initializes a new instance of the struct.
///
/// The token.
/// The count.
/// token
/// count;Count must be positive or zero.
public TokenCount(IToken token, long count)
{
if (ReferenceEquals(token, null)) throw new ArgumentNullException("token");
if (count < 0) throw new ArgumentOutOfRangeException("count", count, "Count must be positive or zero.");
Token = token;
Count = count;
}
}
}