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 Model
|
|
|
|
|
{
|
2023-09-10 21:24:10 -04:00
|
|
|
public int Entries { get; set; }
|
2023-09-04 00:11:04 -04:00
|
|
|
|
2023-09-22 21:24:05 -04:00
|
|
|
/// <remarks>
|
|
|
|
|
/// All the models are initialized with the symbols in symbol
|
|
|
|
|
/// order in the table, and with every symbol in the table
|
|
|
|
|
/// having a frequency of 1
|
|
|
|
|
/// </remarks>
|
2023-09-10 21:24:10 -04:00
|
|
|
public ModelSymbol?[]? Symbols { get; set; }
|
2023-09-22 21:15:52 -04:00
|
|
|
|
2023-09-22 21:24:05 -04:00
|
|
|
/// <remarks>
|
|
|
|
|
/// The initial total frequency is equal to the number of entries
|
|
|
|
|
/// in the table
|
|
|
|
|
/// </remarks>
|
2023-09-22 21:15:52 -04:00
|
|
|
public int TotalFrequency { get; set; }
|
|
|
|
|
|
2023-09-22 21:24:05 -04:00
|
|
|
/// <remarks>The initial time_to_reorder value is 4</remarks>
|
2023-09-22 21:15:52 -04:00
|
|
|
public int TimeToReorder { get; set; }
|
2023-09-04 00:11:04 -04:00
|
|
|
}
|
|
|
|
|
}
|