C# Class Platform.Sandbox.CompressionExperiments.Compressor

Afficher le fichier Open project: Konard/LinksPlatform

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

Compress() public méthode

public Compress ( ulong sequence ) : ulong
sequence ulong
Résultat ulong

Compressor() public méthode

public Compressor ( SynchronizedLinks links, Platform.Data.Core.Sequences.Sequences sequences ) : System
links SynchronizedLinks
sequences Platform.Data.Core.Sequences.Sequences
Résultat System

Precompress0() public méthode

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
Résultat ulong[]

Precompress1() public méthode

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
Résultat ulong[]

Precompress2() public méthode

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
Résultat ulong[]

Precompress3() public méthode

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
Résultat ulong[]

Precompress4() public méthode

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
Résultat ulong[]

Precompress5() public méthode

Original algorithm idea: https://en.wikipedia.org/wiki/Byte_pair_encoding . Global dictionary
public Precompress5 ( ulong sequence ) : ulong[]
sequence ulong
Résultat ulong[]