C# Класс Platform.Sandbox.CompressionExperiments.Compressor

Показать файл Открыть проект

Открытые методы

Метод Описание
Compress ( ulong sequence ) : ulong
Compressor ( SynchronizedLinks links, Platform.Data.Core.Sequences.Sequences sequences ) : System
Precompress0 ( ulong sequence ) : ulong[] Original algorithm idea: https://en.wikipedia.org/wiki/Byte_pair_encoding . Faster version (pairs' frequencies dictionary is not recreated).
Precompress1 ( ulong sequence ) : ulong[] Original algorithm idea: https://en.wikipedia.org/wiki/Byte_pair_encoding . Faster version (pairs' frequencies dictionary is not recreated).
Precompress2 ( ulong sequence ) : ulong[] Original algorithm idea: https://en.wikipedia.org/wiki/Byte_pair_encoding . Faster version (pairs' frequencies dictionary is not recreated).
Precompress3 ( ulong sequence ) : ulong[] Original algorithm idea: https://en.wikipedia.org/wiki/Byte_pair_encoding . If pair repeats twice it is maximum pair.
Precompress4 ( ulong sequence ) : ulong[] Original algorithm idea: https://en.wikipedia.org/wiki/Byte_pair_encoding . If pair repeats twice it is maximum pair.
Precompress5 ( ulong sequence ) : ulong[] Original algorithm idea: https://en.wikipedia.org/wiki/Byte_pair_encoding . Global dictionary

Приватные методы

Метод Описание
DecrementFrequency ( UInt64Link pair ) : void
IncrementFrequency ( UInt64Link pair ) : ulong
ResetMaxPair ( ) : void
UpdateMaxPair ( ) : void
UpdateMaxPair ( UInt64Link pair, ulong frequency ) : void
UpdateMaxPair2 ( ) : void
UpdateMaxPair2 ( UInt64Link pair, ulong frequency ) : void

Описание методов

Compress() публичный Метод

public Compress ( ulong sequence ) : ulong
sequence ulong
Результат ulong

Compressor() публичный Метод

public Compressor ( SynchronizedLinks links, Platform.Data.Core.Sequences.Sequences sequences ) : System
links SynchronizedLinks
sequences Platform.Data.Core.Sequences.Sequences
Результат System

Precompress0() публичный Метод

Original algorithm idea: https://en.wikipedia.org/wiki/Byte_pair_encoding . Faster version (pairs' frequencies dictionary is not recreated).
public Precompress0 ( ulong sequence ) : ulong[]
sequence ulong
Результат ulong[]

Precompress1() публичный Метод

Original algorithm idea: https://en.wikipedia.org/wiki/Byte_pair_encoding . Faster version (pairs' frequencies dictionary is not recreated).
public Precompress1 ( ulong sequence ) : ulong[]
sequence ulong
Результат ulong[]

Precompress2() публичный Метод

Original algorithm idea: https://en.wikipedia.org/wiki/Byte_pair_encoding . Faster version (pairs' frequencies dictionary is not recreated).
public Precompress2 ( ulong sequence ) : ulong[]
sequence ulong
Результат ulong[]

Precompress3() публичный Метод

Original algorithm idea: https://en.wikipedia.org/wiki/Byte_pair_encoding . If pair repeats twice it is maximum pair.
public Precompress3 ( ulong sequence ) : ulong[]
sequence ulong
Результат ulong[]

Precompress4() публичный Метод

Original algorithm idea: https://en.wikipedia.org/wiki/Byte_pair_encoding . If pair repeats twice it is maximum pair.
public Precompress4 ( ulong sequence ) : ulong[]
sequence ulong
Результат ulong[]

Precompress5() публичный Метод

Original algorithm idea: https://en.wikipedia.org/wiki/Byte_pair_encoding . Global dictionary
public Precompress5 ( ulong sequence ) : ulong[]
sequence ulong
Результат ulong[]