2023-09-04 00:12:49 -04:00
|
|
|
namespace SabreTools.Models.Compression.Quantum
|
2023-09-04 00:11:04 -04:00
|
|
|
{
|
|
|
|
|
/// <see href="http://www.russotto.net/quantumcomp.html"/>
|
|
|
|
|
public sealed class ModelSymbol
|
|
|
|
|
{
|
2023-09-10 21:24:10 -04:00
|
|
|
public ushort Symbol { get; set; }
|
2023-09-04 00:11:04 -04:00
|
|
|
|
2023-09-22 21:24:05 -04:00
|
|
|
/// <summary>
|
|
|
|
|
/// The cumulative frequency is the frequency of all the symbols
|
|
|
|
|
/// which are at a higher index in the table than that symbol —
|
|
|
|
|
/// thus the last entry in the table has a cumulative frequency of 0.
|
|
|
|
|
/// </summary>
|
2023-09-10 21:24:10 -04:00
|
|
|
public ushort CumulativeFrequency { get; set; }
|
2023-09-04 00:11:04 -04:00
|
|
|
}
|
|
|
|
|
}
|